
- Location:
sabo/src/components/ui/calendar.tsx
When to use
- Select a single date or a range; shows month navigation and keyboard focus.
- Good for filters, booking flows, analytics time windows.
Usage
sabo/src/components/ui/calendar.tsx
Key props
Render days from adjacent months.
label | dropdown. Dropdown adds month/year selects.Customize internal slots from
react-day-picker (e.g., month_caption, day).Applies Button variants to the nav buttons.
Styling tip
- Control cell size with
[—cell-size:—spacing(8)]. - Use
buttonVariantto align navigation buttons with your design.
Accessibility
- Keyboard navigation is supported; focus outlines are prominent.
- Provide labels for the filter context (“From/To date”).