Skip to Content
ComponentsInputCheckboxGroup

CheckboxGroup

Multiple checkboxes as one field with a string[] value. Includes label / hint / error chrome.

Notifications
Horizontal
import { CheckboxGroup } from '@gg-software/ui'; <CheckboxGroup label="Notifications" options={[ { label: 'Email', value: 'email' }, { label: 'SMS', value: 'sms' }, ]} value={channels} onChange={(values) => setChannels(values)} />;

Props

PropTypeDefaultDescription
options*CheckboxGroupOption[]—
valuestring[]—
defaultValuestring[][]
onChange((value: string[]) => void)—
disabledbooleanfalse
direction"horizontal" | "vertical"vertical
labelReactNode—
hintReactNode—
errorReactNode—
requiredboolean—
namestring—
classNamestring—

* required · generated from packages/ui/src/input/CheckboxGroup/CheckboxGroup.tsx

Types

type CheckboxGroupOption = { label: ReactNode; value: string; disabled?: boolean; };