@yamada-ui/calendar
Version:
Yamada UI calendar component
33 lines (30 loc) • 877 B
TypeScript
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 MonthListOptions {
/**
* Props for calendar header element.
*/
headerProps?: HTMLUIProps;
/**
* Props for calendar month grid element.
*/
monthGridProps?: HTMLUIProps;
/**
* Props for calendar month button element.
*/
monthProps?: {
component?: FC<{
index: number;
month: string;
year: number;
}>;
} & ButtonProps;
}
interface MonthListProps extends HTMLUIProps, Omit<CalendarHeaderProps, "index" | "label">, MonthListOptions {
}
declare const MonthList: FC<MonthListProps>;
export { MonthList, type MonthListProps };