Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

Nested List

A React nested checkbox list with parent-child relationships where parent controls all children for hierarchical selections using shadcn/ui

Select-all controls need to show what they're selecting. This React nested checkbox list creates parent-child hierarchy where clicking parent checks or unchecks all children, and children affect parent state. Built with shadcn/ui using useState tracking each checkbox independently with handleParentChange synchronizing children. The ml-6 indentation visually nests children under parent, font-semibold distinguishes parent importance. Perfect for feature bundles, permission groups, category-based selections, or any interface where options have hierarchical relationships requiring coordinated selection.

Nested List preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.