Draft UI

Checkbox Group

A checkbox group allows a user to select multiple items from a list of options.

Installation

bash
npx @sly-cli/sly add draft-ui checkbox-group

Examples

Default

The default CheckboxGroup uses orientation vertical.

Favorite sports

Horizontal

Set the orientation prop to horizontal to use a horizontal CheckboxGroup.

Favorite sports

Disabled

Use the isDisabled prop to make the entire CheckboxGroup disabled.

Favorite sports