checkboxes and checklists
A parent checkbox that controls an indented list of child checkboxes and shows a mixed state when only some are checked. Use it for permission scopes or export field selection.
How it differs. Two levels: the parent derives checked, unchecked or mixed from its children and sets them all when toggled. Children hang off a guide line under the parent, which carries a running count.
shadcn add @hazine/checkbox-tree-mixed-parent
Depends on @hazine/use-controllable-state, lucide-react, class-variance-authority