Components
Checkbox Group
A pick-many group of Checkbox Cards that owns the checked values, with an optional exclusive "None".
Which services have you used?
CheckboxGroup holds the checked values for the
Checkbox Cards inside it, the way
Radio Group does for Radio Cards. Give
each card a value; the group decides checked.
exclusive lists values that stand alone, such as "None": checking one
clears every other choice, and checking anything else clears it. The same
rule is exported as toggleCheckboxGroupValue for code that keeps its own
state.
Usage
import { CheckboxCard } from "@sophic/portal-ui/components/ui/checkbox-card";
import { CheckboxGroup } from "@sophic/portal-ui/components/ui/checkbox-group";
<CheckboxGroup value={services} onValueChange={setServices} exclusive={["none"]}>
<CheckboxCard bleed value="execution" title="Execution only" />
<CheckboxCard bleed value="advice" title="Investment advice" />
<CheckboxCard bleed value="none" title="None" />
</CheckboxGroup>Props
Prop
Type
Default
Changelog
- 9 October 2026 — Added, with exclusive values for "None". Full notes