Launch sale — 60% off Pro
Contact
CheckboxStandard

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React Indeterminate Checkbox

A React checkbox with indeterminate state for partial selections like select-all controls using shadcn/ui and Radix UI

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Checkboxes aren't just checked or unchecked—sometimes they're both. This React indeterminate checkbox uses a three-state model (checked, unchecked, indeterminate) perfect for select-all scenarios where some but not all child items are selected. Built with shadcn/ui and Radix UI using the checked prop with boolean or indeterminate string value. The minus icon visually indicates partial selection. Perfect for hierarchical lists, batch operations, or any interface where parent checkboxes represent groups of child selections.

Pattern created by @haydenbleasel

Installation

Questions you might have