Checkbox Group
Coordinates a set of checkboxes as one shared selected-values group.
Show codeHide code
Installation
import { Checkbox } from "@makeplane/propel/components/checkbox";
import { CheckboxGroup } from "@makeplane/propel/components/checkbox-group";Usage
import { Checkbox } from "@makeplane/propel/components/checkbox";
import { CheckboxGroup } from "@makeplane/propel/components/checkbox-group";
import * as React from "react";
export default function BasicDemo() {
const [value, setValue] = React.useState<string[]>(["email"]);
return (
<CheckboxGroup
density="comfortable"
value={value}
onValueChange={setValue}
aria-label="Notification channels"
>
<Checkbox value="email" label="Email" />
<Checkbox value="push" label="Push notifications" />
<Checkbox value="sms" label="SMS" />
</CheckboxGroup>
);
}Examples
Select all
Give the group an allValues list and mark one row parent. The parent derives its state from the rows — checked when all are on, indeterminate when only some are — and toggling it selects or clears every row at once.
Show codeHide code
Nested
Each category is its own CheckboxGroup whose allValues are exactly that category’s children, so its parent rolls up only its own rows and never the sibling category.
Show codeHide code
Density
density controls the spacing between rows: comfortable (default) or compact.
Show codeHide code
API Reference
CheckboxGroup
The ready-made checkbox group: grafts Base UI's `CheckboxGroup` behavior (the shared selected-values state) onto the styled `elements/checkbox-group` container.