Installation
npm install --save @types/react-bootstrap-date-picker
Summary
This package contains type definitions for react-bootstrap-date-picker (https://github.com/pushtell/react-bootstrap-date-picker#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-bootstrap-date-picker.
index.d.ts
import { ComponentClass, FocusEventHandler, FunctionComponent, HTMLAttributes, ReactNode } from "react";
export as namespace DatePicker;
export = DatePicker;
declare const DatePicker: DatePicker;
type DatePicker = ComponentClass<DatePicker.DatePickerProps>;
declare namespace DatePicker {
type ChangeCallback = (value: string, formattedValue: string) => void;
interface DatePickerProps {
value?: string | undefined;
defaultValue?: string | undefined;
minDate?: string | undefined;
maxDate?: string | undefined;
style?: any;
className?: string | undefined;
autoFocus?: boolean | undefined;
disabled?: boolean | undefined;
onChange?: ChangeCallback | undefined;
onFocus?: FocusEventHandler<any> | undefined;
onBlur?: FocusEventHandler<any> | undefined;
dateFormat?: string | undefined;
clearButtonElement?: ReactNode | undefined;
showClearButton?: boolean | undefined;
onClear?(): void;
previousButtonElement?: ReactNode | undefined;
nextButtonElement?: ReactNode | undefined;
cellPadding?: string | undefined;
dayLabels?: string[] | undefined;
monthLabels?: string[] | undefined;
calendarPlacement?: string | undefined;
calendarContainer?: any;
weekStartsOnMonday?: boolean | undefined;
showTodayButton?: boolean | undefined;
todayButtonLabel?: string | undefined;
customControl?: FunctionComponent<any> | ComponentClass<any> | undefined;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by Karol Janyst.