Calendar
A date field component that allows users to enter and edit date.
March 2025
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
Installation
npx shadcn@latest add https://exawizards.com/exabase/design/registry/calendar.jsonUsage
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-md border"
/>
)See the React DayPicker (opens in a new tab) documentation for more information.
Date Picker
The Date Picker is built using a composition of the <Popover /> and the <Calendar /> components.
See installation instructions for the Popover components.