Skip to content

CheckboxGroup

<ts-checkbox-group> vv0.6.3

The ts-checkbox-group component.

Open in Storybook for interactive demos.

<ts-checkbox-group orientation="vertical" size="md" value="[]">Content</ts-checkbox-group>
PropertyAttributeTypeDefaultDescription
disableddisabledbooleanfalseDisables all child checkboxes.
errorerrorstring | undefinedError message displayed below the group.
labellabelstring | undefinedAccessible label for the group.
orientationorientation"horizontal" | "vertical"'vertical'Layout direction of the checkboxes.
sizesize"lg" | "md" | "sm"'md'Size for all child checkboxes.
valuestring[][]The currently checked values.
EventDetailBubblesComposedDescription
tsChange\{ value: string[]; \}YesYesEmitted when the selected values change.
NameDescription
*(default)*Checkboxes to group.

Use ::part() to style internal elements:

PartDescription
error-textThe error message wrapper.
groupThe group container.
labelThe group label.
ts-checkbox-group::part(error-text) {
/* your custom styles */
}
<ts-checkbox-group orientation="vertical" size="md" value="[]">Content</ts-checkbox-group>
import { TsCheckboxGroup } from '@tessera-ui/react';
<TsCheckboxGroup orientation="vertical" size="md">Content</TsCheckboxGroup>