Variable: Calendar
@arolariu/components / Calendar
Variable: Calendar
constCalendar:ForwardRefExoticComponent<CalendarProps&RefAttributes<HTMLDivElement>>
Defined in: components/ui/calendar.tsx:62
Renders a styled calendar built on top of react-day-picker.
Remarks
- Renders the
DayPickercalendar root - Built on
react-day-pickerwith shared button styling from the component library - Preserves the V1 public API while aligning visuals with the current design system
- Overrides the default DayPicker
Root,Chevron,DayButton, andWeekNumbercomponents while still allowing consumers to replace them through thecomponentsprop - Override the default chevron icons with
components={{Chevron: YourChevronComponent}}
Example
<Calendar
mode='single'
selected={new Date()}
onSelect={(date) => console.log(date)}
/>
See
// was this page useful?