Measured entry
shadcn-block-calendar-10
A client-side, single-date calendar wrapped in shadcn Card primitives, with controlled month and selection state plus a Today shortcut. It ships as a registry block and composes the shadcn calendar, card, and button, relying on React, react-day-picker, date-fns, Radix Slot, Tailwind styling, and the shared 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 | 51.2 KB (116.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 34.28s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/components/ui/button.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A sound, focused composition that builds, mounts, stays within its viewport, and passes the automated accessibility check. It needs a shadcn-style setup and is best treated as a starting shell, since booking logic and a meaningful initial date remain application work.
Use it if
- You need a compact appointment-date picker with a prominent way to return to today.
- Your app already uses shadcn registry primitives, Tailwind theme tokens, and the shared utility conventions.
- You want a controlled single-date example that can feed the selected value into your own booking flow.
Skip it if
- You need date ranges, time slots, availability rules, or appointment submission out of the box.
- You want a framework-neutral widget with isolated styles and no shadcn project conventions.
- You are sensitive to adding a calendar dependency stack for a small date field.
- You expect the demo's preset selection to remain relevant without replacing its fixed initial date.
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 React DayPicker, date-fns, and Radix Slot; recreate the Calendar, Card, and Button primitives; configure the import alias, Tailwind theme tokens, and shared class-name utility; then adapt the registry imports to local paths. No provider is required.
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