Measured entry

ruixen-checkbox-todo

checkboxunclassifiedmotion on file

A client-side React todo checkbox shipped as a shadcn registry component. It supports controlled and uncontrolled state, disabled styling, a drawn checkmark, and an optional animated strike-through. It uses Tailwind classes, the local cn utility, and Motion for tap and state transitions.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of ruixen-checkbox-todo at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-checkbox-todo at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-checkbox-todo 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-todo
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal72.0 KB (137.5 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 940ms
error during build:
[vite:load-fallback] Could not load <sandbox>re-d2de11a75f8e/src/lib/utils (imported by src/cut/components/ruixen/checkbox-todo.tsx): ENOENT: no such file or directory, open '<sandbox>re-d2de11a75f8e/src/lib/utils'

Verdict

A focused, accessible task control that builds and mounts cleanly in its intended environment. It needs a shadcn-style setup because the bare project cannot resolve the local cn utility, and Motion is a meaningful dependency for such a small control.

Use it if

  • You need a compact checkbox whose checked state clearly reads as a completed task.
  • Your app already uses Tailwind, a shadcn-style cn helper, and Motion.
  • You want either parent-controlled state or a self-managed default state.

Skip it if

  • You need a general-purpose checkbox without todo-specific strike-through styling.
  • You want to avoid adding an animation dependency for a small form control.
  • Your design system does not use Tailwind utilities or shadcn-style path aliases.

Install

Installation record for ruixen-checkbox-todo
Declared dependenciesmotion, clsx, tailwind-merge
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, add Motion, Tailwind, and a cn utility backed by clsx and tailwind-merge. Either configure the at-sign path alias for the utility import or replace that import with your local path, and keep the file in a client-rendered React boundary.

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.