Pure UI
DocsComponentsBlocksNEW
132

Docs

IntroductionGet Started
Installation
Theming

Components

AccordionAvatarBadgeButtonButton GroupCalendarCardCheckboxCollapsibleCombobox
Detached Triggers
DialogInputInput GroupInput OTPKbdLabelMenuNumber FieldPopoverRadio GroupNEWScroll AreaSelectSeparatorSheetSpinnerSwitchTabsNEWTextareaToastTooltip

Calendar

A date field component that allows users to enter and edit date.

January 2026
SuMoTuWeThFrSa

Blocks

See all calendar blocks in the Blocks Library page.

Installation

Loading content...

Usage

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

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

See the React DayPicker documentation for more information.

Animate

You can animate the calendar by adding the animate prop.

<Calendar
  animate
  mode="single"
/>
January 2026
SuMoTuWeThFrSa