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

23 lines (22 loc) 960 B
import { DateChangeHandler, DayIndex, MonthChangeHandler } from '../index'; import { MoveFocusHandler } from '../utils/move-focus-handler'; import { CalendarTypes } from '../definitions'; import { DatePickerProps } from '../../definitions'; export interface GridProps { locale: string; baseDate: Date; isDateEnabled: DatePickerProps.IsDateEnabledFunction; focusedDate: Date; onSelectDate: DateChangeHandler; onFocusDate: DateChangeHandlerNullable; onChangeMonth: MonthChangeHandler; startOfWeek: DayIndex; todayAriaLabel: string; selectedDate: Date | null; handleFocusMove: MoveFocusHandler; } export interface DateChangeHandlerNullable { (detail: CalendarTypes.DateDetailNullable): void; } declare const Grid: ({ locale, baseDate, isDateEnabled, focusedDate, onSelectDate, onFocusDate, onChangeMonth, startOfWeek, todayAriaLabel, selectedDate, handleFocusMove }: GridProps) => JSX.Element; export default Grid;