UNPKG

@preamp/datepicker

Version:

VideoAmp's Component library

31 lines (30 loc) 1.2 kB
import * as React from 'react'; import { DayModifiers, DayPickerProps } from 'react-day-picker/types'; export interface DatePickerProps extends DayPickerProps { /** Custom class name. */ className?: string; /** Unique identifier used for targeting the component */ dataUI?: string; /** Optional ID to apply */ id?: string; /** Optional field */ isOptional?: boolean; /** Field Label */ label?: string; /** An object of day modifiers for custom selections and groups */ selectedDay?: Date; /** Optional style to apply - inline styles should NOT be used unless absolutely necessary. */ style?: React.CSSProperties; /** A timezone string. Must be specified as a canonical name from https://en.wikipedia.org/wiki/List_of_tz_database_time_zones */ timezone?: string; /** Event handler when the user clicks on a day cell. */ onDayClick?(day: Date, modifiers: DayModifiers, event: React.MouseEvent): void; } /** * A basic date picker. */ export declare class DatePicker extends React.Component<DatePickerProps> { static defaultProps: DatePickerProps; componentDidMount(): void; render(): React.ReactElement<any>; }