react-input-flatpickr
Usage
yarn add @geekcojp/react-input-flatpickr
Props
export interface InputFlatpickrProps extends flatpickr.Options.Options {
theme?:
| 'dark'
| 'material_blue'
| 'material_green'
| 'material_orange'
| 'material_red'
| 'airbnb'
| 'confetti';
value?: string;
placeholder?: string;
inputName?: string;
inputReadonly?: boolean;
disabled?: boolean;
handleInputBlur?(data: {
input: HTMLInputElement;
value: string;
}): void | Promise<void>;
handleInputChange?(data: {
input: HTMLInputElement;
value: string;
}): void | Promise<void>;
}