Design System

Component usage guide template

Browse Components

ui

Calendar

A calendar component for date selection with support for single, range, and multiple modes.

1. Import
Import the Calendar component from the design system.
import { Calendar } from "@/design-system/components/ui/calendar"
2. Props
Calendar component props.
PropTypeDefault
mode"single" | "range" | "multiple""single"
selectedDate | Date[]--
defaultSelectedDate | Date[]--
onSelect(date: Date | Date[]) => void--
disabled(date: Date) => boolean--
numberOfMonthsnumber1
classNamestring--
3. Usages
Common Calendar patterns and configurations.
January 2026
SuMoTuWeThFrSa293031123456789101112131415161718192021222324252627282930311
import { Calendar } from "@/design-system/components/ui/calendar";
import { useState } from "react";

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

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