Measured entry
ruixen-checkbox-terms
checkboxunclassifiedmotion on file
A client-side React consent checkbox shipped as a shadcn registry file. It supports controlled or internal state, configurable terms and privacy links, required and disabled states, and an animated check mark. It depends on React, Tailwind utility classes, Motion, and the usual cn class-merging 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 | 69.0 KB (134.4 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 40.86s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/checkbox-terms.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A focused, accessible consent control that builds and mounts cleanly in its intended environment. The API covers common form needs, but the animation dependency is heavy for one checkbox. It needs a shadcn-style setup because the bare version cannot resolve the shared utility import.
Use it if
- You need a ready-made consent control with separate terms and privacy links.
- Your form needs controlled and uncontrolled checkbox state plus required and disabled handling.
- Your interface already uses Motion and Tailwind, so the animated treatment fits the existing stack.
Skip it if
- You want a native-looking checkbox without an animation dependency.
- You need an indeterminate state or richer checkbox-group behavior.
- Your legal consent copy needs a structure beyond the fixed terms-and-privacy sentence.
Install
| Declared dependencies | motion |
|---|---|
| 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, copy the component, install Motion, configure Tailwind for the utility classes, and add a compatible cn class-merging helper. Either configure the at-sign source alias for the shared utility import or replace it with a local relative 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/ruixenui/ruixen.comAlternatives
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
- shadcn-checkboxunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 18.4KB
- Bare
- fail
- 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