simple-chakra-ui-datepicker
Version:
This is a package inspired on the necesity to use a datepicker for [Chakra UI](https://v1.chakra-ui.com/faq#is-there-a-datepicker-in-chakra-ui).
36 lines (35 loc) • 1.37 kB
TypeScript
import { ReactElement } from 'react';
export interface LabelDaysProps {
labels: string[];
gap?: string;
}
export declare function LabelDays({ labels, gap }: LabelDaysProps): import("react/jsx-runtime").JSX.Element;
export interface MonthSelectProps {
months?: string[];
onChange?: (arg0: number) => void;
defaultValue?: number;
currentYear?: number;
maxDate?: Date;
minDate?: Date;
activeColor?: string;
}
export declare function MonthSelect({ months, defaultValue, onChange, currentYear, maxDate, minDate, }: MonthSelectProps): import("react/jsx-runtime").JSX.Element;
export interface YearSelectProps {
initialYear?: number;
endYear?: number;
onChange?: (arg0: number) => void;
defaultValue?: number;
maxDate?: Date;
minDate?: Date;
activeColor?: string;
}
export declare function YearSelect({ defaultValue, onChange, endYear, initialYear, maxDate, minDate, }: YearSelectProps): import("react/jsx-runtime").JSX.Element;
export interface ControlButtonsProps {
onNext?: () => void;
onPrev?: () => void;
bgColor?: string;
activeColor?: string;
rightArrowIcon?: ReactElement;
leftArrowIcon?: ReactElement;
}
export declare function ControlButtons({ onNext, onPrev, rightArrowIcon, leftArrowIcon, bgColor, activeColor }: ControlButtonsProps): import("react/jsx-runtime").JSX.Element;