Measured entry
shadcn-block-calendar-13
A client-side single-date calendar block with a control for switching the caption between month-and-year, month-only, and year-only dropdowns. It ships as a shadcn registry component and composes the shadcn Calendar, Label, and Select primitives, which in turn rely on React DayPicker, date-fns, Radix UI, shared styling, and the shadcn utility helper.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 81.2 KB (146.6 KB build, 65.4 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | none |
What the harness recorded
BARE BUILD
✗ Build failed in 37.88s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/components/ui/select.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A sound fit for shadcn apps that need flexible month and year navigation around a single-date picker. It builds, mounts, and stays contained in the verified harness, but it needs a shadcn-style setup and does not mount as a bare drop-in.
Use it if
- You need single-date selection with direct month or year navigation.
- Your app already uses shadcn components and its Tailwind styling conventions.
- You want the caption navigation mode to be selectable by the user.
Skip it if
- You need a date range, time selection, or scheduling rules out of the box.
- You want a framework-neutral calendar with no Radix UI or shadcn dependencies.
- The caption mode should be fixed and the extra selector would add unnecessary interface.
Install
| Declared dependencies | react-day-picker@latest, date-fns, @radix-ui/react-slot, @radix-ui/react-label, @radix-ui/react-select |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, add the Calendar, Label, and Select component sources; React DayPicker, date-fns, and the required Radix UI packages; the shared class-name utility; Tailwind theme tokens; and matching component styles. Update the registry import aliases to your local paths.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/shadcn-ui/uiAlternatives
Other published entries for the calendar pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- shadcn-calendarunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 37.3KB
- Bare
- fail
- Prov
- NO
- shadcn-block-calendar-01minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 50.8KB
- Bare
- fail
- Prov
- NO
- shadcn-block-calendar-02minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 50.9KB
- Bare
- fail
- Prov
- NO
- shadcn-block-calendar-03minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 50.9KB
- Bare
- fail
- Prov
- NO
- shadcn-block-calendar-04minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 50.9KB
- Bare
- fail
- Prov
- NO
- shadcn-block-calendar-05minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 50.9KB
- Bare
- fail
- Prov
- NO