Tulip Logo IconTulip
Components

Calendar

A calendar component that allows users to select a date or a range of dates.

mei 2026

Usage

import { Calendar } from "@tulip-systems/core/components/client";
const [date, setDate] = React.useState<Date | undefined>(new Date());

return <Calendar mode="single" selected={date} onSelect={setDate} className="rounded-lg border" />;

Selected Date (With TimeZone)

The Calendar component accepts a timeZone prop to ensure dates are displayed and selected in the user's local timezone.

Note: If you notice a selected date offset, make sure the timeZone prop is set to the user's local timezone.

Examples

Basic

A basic calendar component. We used className="rounded-lg border" to style the calendar.

mei 2026

Range Calendar

Use the mode="range" prop to enable range selection.

mei 2026
juni 2026

Month and Year Selector

Use captionLayout="dropdown" to show month and year dropdowns.

mei 2026

Presets

mei 2026

Date and Time Picker

mei 2026

Booked dates

mei 2026

Week Numbers

Use showWeekNumber to show week numbers.

mei 2026
18
19
20
21
22

On this page