amountOfMonths
Description
The number of months to display.
Type
numberDefault
1Leave Yamada UI a star
StarCalendar is a component for displaying or selecting dates in a calendar.
Description
The number of months to display.
Type
numberDefault
1Description
The visual color appearance of the component.
Type
"blackAlpha" | "whiteAlpha" | "amber" | "blue" | "info" | "link" | "primary" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "success" | "indigo" | "lime" | "neutral" | "orange" | "warning" | "pink" | "purple" | "red" | "danger" | "rose" | "sky" | "teal" | "violet" | "secondary" | "yellow"Default
"primary"Description
Props for calendar control button element.
Type
Omit<CalendarControlProps, "operation">Description
The format used for conversion. Check the docs to see the format of possible modifiers you can pass.
Type
stringDefault
'MMMM YYYY'Docs
https://day.js.org/docs/en/display/format#list-of-localized-formatsDescription
Props for calendar day button element.
Type
{ component?: FC<DayProps> | undefined } & ButtonPropsDescription
The initial month of the calendar.
Type
DateDefault
'new Date()'Description
The initial type of the calendar.
Type
"month" | "date" | "year"Description
The initial value of the calendar.
Type
NonNullable<Y>Description
If true, outside days will be disabled.
Type
booleanDefault
falseDescription
If true, enables date multiple selection.
Type
booleanDefault
falseDescription
If true, enables date range selection.
Type
booleanDefault
falseDescription
Callback function to determine whether the day should be disabled.
Type
(date: Date) => booleanDescription
Define the first day of the week.
Type
"monday" | "sunday"Default
'monday'Description
Props for calendar header element.
Type
HTMLUIPropsDescription
Define holidays.
Type
Date[]Description
Props for calendar label button element.
Type
{
icon?:
| IconProps
| ReactElement<any, string | JSXElementConstructor<any>>
| undefined
} & CalendarLabelPropsDescription
The locale of the calendar. Check the docs to see the locale of possible modifiers you can pass.
Type
stringDefault
'en-US'Docs
https://day.js.org/docs/en/i18n/instance-localeDescription
The maximum possible date.
Type
DateDescription
The maximum selectable value.
Type
numberDescription
The minimum possible date.
Type
DateDescription
The minimum selectable value.
Type
numberDescription
The month of the calendar.
Type
DateDescription
The format used for conversion. Check the docs to see the format of possible modifiers you can pass.
Type
stringDefault
'MM'Docs
https://day.js.org/docs/en/display/format#list-of-localized-formatsDescription
Props for calendar month grid element.
Type
HTMLUIPropsDescription
Props for calendar month button element.
Type
{
component?: FC<{ index: number; month: string; year: number }> | undefined
} & ButtonPropsDescription
Props for calendar next control button element.
Type
Omit<CalendarControlProps, "operation">Description
Ref to a next function.
Type
type ONLY_FOR_FORMAT =
| ((instance: (() => void | undefined) | null) => void)
| MutableRefObject<(() => void | undefined) | null>Description
The callback invoked when value state changes.
Type
(value: Y) => voidDescription
The callback invoked when month state changes.
Type
(value: Date) => voidDescription
The callback invoked when type state changes.
Type
(
type: "month" | "date" | "year",
year?: number | undefined,
month?: number | undefined,
) => voidDescription
The number of months to paginate.
Type
numberDefault
1Description
Props for calendar previous control button element.
Type
Omit<CalendarControlProps, "operation">Description
Ref to a previous function.
Type
type ONLY_FOR_FORMAT =
| ((instance: (() => void | undefined) | null) => void)
| MutableRefObject<(() => void | undefined) | null>Description
The size of the Calendar.
Type
"sm" | "md" | "lg" | "full"Default
"md"Description
Props for calendar month table element.
Type
MonthTablePropsDescription
If true, highlight today.
Type
booleanDefault
falseDescription
The type of the calendar.
Type
"month" | "date" | "year"Description
Ref to a type function.
Type
type ONLY_FOR_FORMAT =
| ((instance: (() => void | undefined) | null) => void)
| MutableRefObject<(() => void | undefined) | null>Description
The value of the calendar.
Type
NonNullable<Y>Description
The variant of the Calendar.
Type
"solid" | "subtle" | "unstyled"Default
"solid"Description
The format used for conversion. Check the docs to see the format of possible modifiers you can pass.
Type
stringDefault
'dd'Docs
https://day.js.org/docs/en/display/format#list-of-localized-formatsDescription
Props for calendar weekday element.
Type
{ component?: FC<WeekdayProps> | undefined } & UIProps &
Omit<HTMLProps<"div">, keyof UIProps>Description
Define weekend days.
Type
number[]Default
'[0, 6]'Description
If true, display the calendar control buttons.
Type
booleanDefault
trueDescription
If true, display the calendar header.
Type
booleanDefault
trueDescription
If true, display the calendar label button.
Type
booleanDefault
trueDescription
If true, display the calendar weekdays.
Type
booleanDefault
trueDescription
The format used for conversion. Check the docs to see the format of possible modifiers you can pass.
Type
stringDefault
'YYYY'Docs
https://day.js.org/docs/en/display/format#list-of-localized-formatsDescription
Props for calendar year grid element.
Type
HTMLUIPropsDescription
Props for calendar year button element.
Type
{
component?: FC<{ index: number; year: number }> | undefined
} & ButtonPropsEdit this page on GitHub