Checkbox Group
Native Solid 2 fork. Original documentation and designs © WorkOS; historical posts retain their original context.
API Reference
This component is based on the div element and supports common margin props.
Root
Contains all the parts of a checkbox group.
Item
An item in the group that can be checked.
Examples
Size
Use the size prop to control the checkbox size.
Variant
Use the variant prop to control the visual style of the checkboxes.
Color
Use the color prop to assign a specific color.
High-contrast
Use the highContrast prop to increase color contrast with the background.
Alignment
Composing CheckboxGroup.Item within Text automatically centers it with the first line of text.
It is automatically well-aligned with multi-line text too.
Disabled
Use the native disabled attribute to create a disabled checkbox.