Draft UI

Checkbox

A checkbox allows a user to select multiple items from a list of individual items, or to mark one individual item as selected.

Installation

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

Examples

Default

The default Checkbox uses size md.

Sizes

You can use the size prop to alter the Checkbox size. Sizes sm, md, and lg are included by default.

Disabled

Use the isDisabled prop to make an individual Checkbox disabled.