Checkbox Group Field
A labeled fieldset of checkbox options with description and helper or error text.
Choose every update channel you want.
Workspace alerts.
At least one channel is recommended.
Show codeHide code
Installation
import {
CheckboxGroupField,
CheckboxGroupFieldOption,
} from "@makeplane/propel/components/checkbox-group-field";Usage
import {
CheckboxGroupField,
CheckboxGroupFieldOption,
} from "@makeplane/propel/components/checkbox-group-field";
export default function BasicDemo() {
return (
<CheckboxGroupField
name="notifications"
label="Notifications"
description="Choose every update channel you want."
density="comfortable"
size="lg"
defaultValue={["email"]}
hint="At least one channel is recommended."
>
<CheckboxGroupFieldOption value="email" label="Email" />
<CheckboxGroupFieldOption value="slack" label="Slack" description="Workspace alerts." />
</CheckboxGroupField>
);
}Examples
Sizes
The legend, description, and option text scale together across lg, xl, and 2xl.
Choose every update channel you want.
Workspace alerts.
Choose every update channel you want.
Workspace alerts.
Choose every update channel you want.
Workspace alerts.
Show codeHide code
Densities
density controls the spacing between option rows: comfortable keeps a gap, compact stacks them flush.
Choose every update channel you want.
Workspace alerts.
Choose every update channel you want.
Workspace alerts.
Show codeHide code
Invalid
Setting error marks the whole group invalid and recolors every unchecked option’s border to danger.
Choose every update channel you want.
Workspace alerts.
Show codeHide code
API Reference
CheckboxGroupField
Ready-to-use checkbox group field with legend, description, and helper/error text.
CheckboxGroupFieldOption
A checkbox option row for use inside `CheckboxGroupField` or a custom `CheckboxGroup`.