UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

34 lines (33 loc) 1.1 kB
import { BaseComponentProps } from '../internal/base-component'; import { FormFieldValidationControlProps } from '../internal/context/form-field-context'; import { NonCancelableEventHandler } from '../internal/events'; export interface DatePickerProps extends BaseComponentProps, FormFieldValidationControlProps { value: string; placeholder?: string; isDateEnabled?: DatePickerProps.IsDateEnabledFunction; locale?: string; startOfWeek?: number; todayAriaLabel: string; nextMonthAriaLabel: string; previousMonthAriaLabel: string; name?: string; disabled?: boolean; readOnly?: boolean; autoFocus?: boolean; ariaLabel?: string; ariaRequired?: boolean; onFocus?: NonCancelableEventHandler<null>; onBlur?: NonCancelableEventHandler<null>; onChange?: NonCancelableEventHandler<DatePickerProps.ChangeDetail>; } export declare namespace DatePickerProps { interface ChangeDetail { value: string; } interface IsDateEnabledFunction { (date: Date): boolean; } interface Ref { focus(): void; } }