Command Palette

Search for a command to run...

Calendar

shadcn/ui

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

December 2025

import { Calendar } from "@/registry/optics/calendar";<Calendar	mode="single"	selected={date}	onSelect={setDate}	className="rounded-md border"/>

Installation

pnpm dlx shadcn@latest add https://optics.agusmayol.com.ar/r/calendar.json

Props

<Calendar />
Name
Type
className
string
classNames
object
showOutsideDays
boolean (default: true)
captionLayout
"label" | "dropdown" | "dropdown-months" | "dropdown-years"
buttonVariant
"default" | "outline" | "ghost" | "destructive" | "secondary" | "info" | "success" | "warning" | "muted" | "raised" | "link" (default: "ghost")
formatters
object
components
object