UNPKG

@yamada-ui/calendar

Version:

Yamada UI calendar component

32 lines (29 loc) 839 B
import { ButtonProps } from '@yamada-ui/button'; import { HTMLUIProps, FC } from '@yamada-ui/core'; import { CalendarHeaderProps } from './calendar-header.js'; import '@yamada-ui/icon'; import 'react'; import './use-calendar-header.js'; interface YearListOptions { /** * Props for calendar header element. */ headerProps?: HTMLUIProps; /** * Props for calendar year grid element. */ yearGridProps?: HTMLUIProps; /** * Props for calendar year button element. */ yearProps?: { component?: FC<{ index: number; year: number; }>; } & ButtonProps; } interface YearListProps extends HTMLUIProps, Omit<CalendarHeaderProps, "index" | "label">, YearListOptions { } declare const YearList: FC<YearListProps>; export { YearList, type YearListProps };