Introducing PrimeReact v11-alpha 🎉Discover Now

CheckboxGroup

Checkbox is an extension to standard checkbox element with theming.

Survey
Which LLM provider should we integrate next?
preview

Installation#

npx shadcn@latest add @primereact/checkboxgroup

Usage#

import { Checkbox } from '@/components/ui/checkbox';
import { CheckboxGroup } from '@/components/ui/checkboxgroup';
<CheckboxGroup>
    <Checkbox value="option1" />
    <Checkbox value="option2" />
</CheckboxGroup>

Examples#

Basic#

basic-demo

Dynamic#

Checkboxes can be generated using a list of values.

dynamic-demo

Card#

Checkboxes can be displayed in a card format.

Select your interests:
card-demo

Indeterminate#

Use the indeterminate property to display an indeterminate state.

indeterminate-demo