Measured entry

ruixen-checkbox-tree

selectunclassifiedmotion on file

A client-side React and TypeScript checkbox tree shipped as a shadcn registry file. It supports controlled or uncontrolled selection, recursively toggles descendants, and animates branch disclosure. It relies on Tailwind utility classes, Motion, and a local cn helper backed by clsx and tailwind-merge.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of ruixen-checkbox-tree at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-checkbox-tree at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-checkbox-tree 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-tree
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical1
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal72.2 KB (137.7 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 747ms
error during build:
[vite:load-fallback] Could not load <sandbox>re-faaffeddb8b6/src/lib/utils (imported by src/cut/components/ruixen/checkbox-tree.tsx): ENOENT: no such file or directory, open '<sandbox>re-faaffeddb8b6/src/lib/utils'

Verdict

A compact fit for modest nested selectors, with clear selection behavior and working responsive rendering. It needs a shadcn-style setup to mount, and the unnamed disclosure controls plus visual-only mixed state should be fixed before production use.

Use it if

  • You need nested checkbox selection where choosing a branch should include all of its descendants.
  • Your React app already uses Tailwind and a shadcn-style source-copy workflow.
  • You want controlled selection through a value array and a change callback, or a simple uncontrolled default.

Skip it if

  • You need production-ready accessibility without modifying the component, since the disclosure buttons have no accessible names and mixed checkbox state is only visual.
  • You need externally controlled expansion, lazy-loaded branches, or virtualization for a large tree.
  • You want a dependency-light static tree and do not need animated disclosure.

Install

Installation record for ruixen-checkbox-tree
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 Tailwind styling, install Motion, clsx, and tailwind-merge, configure the at-sign source alias, and provide a lib/utils module exporting cn. Add accessible names to disclosure buttons and expose mixed checkbox state to assistive technology.

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 select pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.