Calendar
A date field component that allows selecting dates.
Installation
Add the calendar component with the shadcn CLI.
npx shadcn@latest add https://yami.ui.unsanity.ai/r/calendar.jsonUsage
import { Calendar } from "@/components/ui/calendar"
<Calendar mode="single" defaultMonth={new Date()} className="border border-border" />Examples
Default
Code
import { Calendar } from "@/components/ui/calendar"
<Calendar mode="single" defaultMonth={new Date()} className="border border-border" />