Calendar

A calendar allows a user to select a single date value.

Appointment date, January 2026

28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<Calendar aria-label="Appointment date" />

Installation

npx shadcn@latest add @dotui/calendar

Usage

Use calendars to allow users to select a single date value.

import { Calendar } from "@/components/ui/calendar";
<Calendar aria-label="Date" />

API Reference

Calendar

Missing description.

Supports all header attributes.

CalendarGrid

A calendar grid displays a single grid of days within a calendar or range calendar which can be keyboard navigated and selected by the user.

PropType
union
"narrow" | "short" | "long"

CalendarCell

A calendar cell displays a date cell within a calendar grid which can be selected by the user.

PropType
"primary" | "accent"
CalendarDate
ReactNode | function

Last updated on 1/13/2026

Built with passion by @mehdibha.