@yamada-ui/calendar
Version:
Yamada UI calendar component
32 lines (29 loc) • 841 B
text/typescript
import { ButtonProps } from '@yamada-ui/button';
import { HTMLUIProps, FC } from '@yamada-ui/core';
import { CalendarHeaderProps } from './calendar-header.mjs';
import '@yamada-ui/icon';
import 'react';
import './use-calendar-header.mjs';
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 };