- Components
- Date and time
Calendar
react-day-picker with rounded-xl day cells. Selected is primary, a range band is accent, today carries a dot and an accent fill, navigation is pill ghost buttons.
Installation#
npx shadcn add @ortaui/calendarExamples#
Single#
Range, two months#
Dropdown caption, weekends disabled#
Outside days hidden, week numbers#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| mode | "single" | "multiple" | "range" | - | Selection model; pair with selected / onSelect. |
| captionLayout | "label" | "dropdown" | "dropdown-months" | "dropdown-years" | "label" | Month caption as text or native dropdowns. |
| numberOfMonths | number | 1 | Months side by side (stacked under md). |
| buttonVariant | ButtonProps['variant'] | "ghost" | Variant of the month navigation buttons. |
| disabled / hidden | Matcher | Matcher[] | - | react-day-picker matchers for days to disable or hide. |
| className | string | - | Merged with the component classes via cn(). |