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.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of ruixen-checkbox-terms at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-checkbox-terms at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-checkbox-terms at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

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.

Harness measurements recorded for ruixen-checkbox-terms
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal69.0 KB (134.4 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten 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

Installation record for ruixen-checkbox-terms
Declared dependenciesmotion
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno 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.

Alternatives

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.