Date picker
Choose a date without losing context.
Browse dates in a clear, compact month view.
npx shadcn@latest add @silicon-ui/calendarnpx shadcn@latest add @silicon-ui/calendarInstall the dependencies.
npm install lucide-react motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/calendar/calendar.tsxcomponents/silicon-ui/lib/use-today.ts sharedcomponents/silicon-ui/calendar/calendar.module.cssInstall the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation
| Prop | Type | Default |
|---|---|---|
value | Date | — |
onChange | (date: Date) => void | — |
month | Date | — |
onMonthChange | (month: Date) => void | — |
minDate | Date | — |
maxDate | Date | — |
disabledDates | CalendarDateMatcher | — |
locale | string | "en-US" |
className | string | — |
showTodayAdds a Today button that slides back to the current month and selects today when it is available. | boolean | false |