Calendar
A square month grid with phosphor selection, an amber today marker and Afterglow navigation buttons.
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
Installation
npx shadcn@latest add @afterglow/calendarComposition
Component structure.
Calendar
└── CalendarDayButtonAPI Reference
Calendar
Wraps React DayPicker and replaces its navigation and day controls with Afterglow buttons.
| Prop | Type | Default |
|---|---|---|
| showOutsideDays | boolean | true |
| fixedWeeks | boolean | true |
| captionLayout | "label" | "dropdown" | "dropdown-months" | "dropdown-years" | "label" |
| buttonVariant | Button variant | "ghost" |
Everything else is React DayPicker's API, documented there.