Formssrc/components/ui/calendar.tsx
Calendar
A date picker calendar built on react-day-picker through Preact compat.
Preview
Installation
Copy the component source into your project with `degit`. This port is intentionally not distributed as an npm package.
bunx degit https://github.com/LiasCode/shadcn-preact/src/components/ui#main ./src/components/uiExternal dependencies: react-day-picker, date-fns.
Usage
import { Calendar } from "@/components/ui/calendar"
export function Example() {
return <Calendar>Calendar</Calendar>
}API Reference
ExportPurpose
CalendarComposable part exported by `@/components/ui/calendar`.