Measured entry
shadcn-calendar
A copy-in React calendar built on React DayPicker, shipped as a client-side registry component rather than a standalone package. It uses the shadcn button primitive and class utility, Tailwind theme tokens, Lucide icons, date-fns, and the declared Radix dependency.



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 | 37.3 KB (102.7 KB build, 65.4 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 3.28s error during build: [vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>/src/components/ui/button.tsx".
Verdict
A solid fit inside an existing shadcn codebase, with clean mounting, responsive containment, and no detected accessibility violations. It needs a shadcn-style setup and does not build or mount in a bare React project as supplied.
Use it if
- You already use shadcn conventions and want a date picker that matches its button and theme system.
- You need single-date, range, week-number, or month-dropdown behavior exposed through React DayPicker props.
- You want source-level control over day states, navigation controls, and calendar styling.
Skip it if
- Your project does not use Tailwind theme tokens or a shadcn-style component setup.
- You want a calendar that installs as an isolated package without copied UI primitives.
- You are minimizing client-side dependency weight for a simple date field.
Install
| Declared dependencies | react-day-picker@latest, date-fns, radix-ui |
|---|---|
| Missing on install | react-day-picker@latest |
| 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 React DayPicker, date-fns, Radix UI, Lucide React, class-variance-authority, the shadcn button primitive, a compatible class-merging utility, and Tailwind theme tokens. Update the registry import aliases to 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-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
- shadcn-block-calendar-06minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 50.9KB
- Bare
- fail
- Prov
- NO