Measured entry
shadcn-block-calendar-06
A client-side date-range picker that presents one month, keeps the selected range in React state, and enforces a minimum stay with a short helper label. It ships as a shadcn registry block built on the shadcn Calendar primitive, react-day-picker, date-fns, Radix Slot, Tailwind classes, and the usual local class-name utility.



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 | 50.9 KB (116.3 KB build, 65.4 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | none |
What the harness recorded
BARE BUILD
✗ Build failed in 28.79s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/components/ui/calendar.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A focused starting point for booking-style range selection, with clean behavior and no provider requirement. It needs a shadcn-style setup, so it is a better fit for an existing shadcn codebase than a drop-in calendar for a bare React project.
Use it if
- You need an inline range picker for bookings or reservations with a minimum-stay rule.
- Your app already uses shadcn conventions, Tailwind theme tokens, and path aliases.
- You want selection state kept local and can connect it to your own form or availability logic.
Skip it if
- You need a compact popover field rather than a permanently visible calendar.
- You need server-driven availability, blocked dates, pricing, or validation included in the component.
- Your project avoids shadcn and Tailwind conventions and cannot justify recreating their supporting utilities and theme setup.
Install
| Declared dependencies | react-day-picker@latest, date-fns, @radix-ui/react-slot |
|---|---|
| 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 primitive and its react-day-picker, date-fns, and Radix Slot dependencies, then provide Tailwind styling, matching theme tokens, the local class-name helper, and the expected import alias. Replace the registry import with your project path.
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