Measured entry
shadcn-checkbox
A client-side React checkbox delivered as a shadcn registry TypeScript component. It wraps the Radix checkbox primitive, renders a Lucide check icon, and styles state, focus, disabled, invalid, and dark-mode behavior with Tailwind utilities, theme tokens, and the shared cn 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 | 18.4 KB (83.0 KB build, 64.6 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 1.40s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ui/checkbox.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A solid fit inside an existing shadcn codebase: the wrapper is small, editable, and delegates interaction behavior to Radix. It is not drop-in for a bare React app and needs a shadcn-style setup before it will build and mount.
Use it if
- You already use shadcn conventions and want a checkbox that fits the same theme tokens.
- You need Radix-managed checked state, keyboard behavior, and form semantics behind a compact styled control.
- You want the component source in your project so its states and styling remain directly editable.
Skip it if
- Your project does not use Tailwind utilities or shadcn theme tokens and you do not want to recreate that styling layer.
- You want a self-contained package component with no local utility alias or copied source file.
- You already standardize on another checkbox primitive or icon library and want to avoid parallel dependencies.
Install
| Declared dependencies | radix-ui |
|---|---|
| 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 Radix UI and Lucide React, provide the cn class-merging helper at the expected import alias, and configure Tailwind with the referenced color tokens, state variants, radius, shadows, focus styles, and dark-mode rules. Keep it as a client component where that distinction applies.
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 checkbox pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- neu-checkboxneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- clay-checkboxclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.2KB
- Bare
- pass
- Prov
- NO
- originui-comp-132minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 32.5KB
- Bare
- fail
- Prov
- NO
- originui-comp-135minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 32.5KB
- Bare
- fail
- Prov
- NO
- originui-comp-140minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 32.5KB
- Bare
- fail
- Prov
- NO
- originui-comp-133minimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 32.6KB
- Bare
- fail
- Prov
- NO