Skip to main content

Calendar

Calendar(props): Element

Calendar component with customizable date selection and navigation

Parameters

props

DayPickerProps

CalendarProps

Based on DayPicker

Returns

Element

Example

function MyComponent() {
const [date, setDate] = useState<Date>(new Date());

return (
<Calendar mode="single" selected={date} onSelect={setDate} initialFocus/>
);
}