Checkbox Group
Checkbox group with a tri-state select-all, descriptions and disabled options.
Copy a prompt for your AI coding tool with the source, dependencies and usage
Props
CheckboxGroupProps
Also accepts all props of Omit<React.ComponentProps<"fieldset">, "onChange" | "defaultValue">
| Prop | Type | Default | Description |
|---|---|---|---|
| options* required | CheckboxOption[] | — | — |
| value | string[] | — | — |
| defaultValue | string[] | [] | — |
| onValueChange | (value: string[]) => void | — | — |
| legend | string | — | — |
| selectAll | boolean | string | false | Show a tri-state "select all" row on top |
Install
$ npx shadcn@latest add https://chromotion.dev/r/checkbox-group.json