Skip to main content

Calendar

Form Controls
Stable

Date picker calendar built on react-day-picker. Supports single date, range, and multi-month modes.

Quick Import
import { Calendar } from "@cohere-ai/waypoint-ui/calendar";

Live Preview

Loading Calendar...

Props

NameTypeDefaultDescription
mode'single' | 'multiple' | 'range'-Selection mode (from react-day-picker)
selectedDate | DateRange | Date[]-Selected date(s)
onSelectfunction-Callback when selection changes
showOutsideDaysbooleantrueShow days from adjacent months
captionLayoutstring'label'Caption layout (from react-day-picker)
buttonVariantButton variant'ghost'Variant applied to nav buttons
disabledDate | function-Dates to disable
numberOfMonthsnumber-Number of months to display

Examples

Single Date Picker

Calendar for selecting a single date

1
import { Calendar } from '@cohere-ai/waypoint-ui/calendar';
2
 
3
const [date, setDate] = React.useState<Date | undefined>();
4
 
5
<Calendar mode="single" selected={date} onSelect={setDate} />

Date Range Picker

Calendar for selecting a date range across two months

1
import { Calendar } from '@cohere-ai/waypoint-ui/calendar';
2
 
3
<Calendar
4
mode="range"
5
selected={range}
6
onSelect={setRange}
7
numberOfMonths={2}
8
/>

Accessibility

Keyboard Navigation

Arrow keys navigate dates. Enter to select. Page Up/Down for months.

Note: RTL supported — carets flip direction automatically.

Found an Issue?

If you've encountered a bug or have feedback about the Calendar component, please report it to our team. Your feedback helps us improve Waypoint.

Available for all users • Issue will be created in Linear

Was this page helpful?

Your feedback helps us improve our documentation.

Need Help?

Check out the Whitelabeling Playground to explore customization options or visit the Developer Guide for integration help.