Checkbox
Overview
Checkboxes let users toggle settings on and off within a form.
When to use:
- Use
Checkboxeswhen users can toggle one or more items in a form.
Implementation
Checkboxes are a stylized input[type="checkbox"] with controllable checked/unchecked states.
Edit the code below to see your changes live!
Props
Supports all native <input /> element attributes.
Prop name | Type | Default | Description |
|---|---|---|---|
label * | string | CheckboxLabel | | Label to display next to a |
hiddenLabel | boolean | | Renders |
isIndeterminate | boolean | | Styles and sets the checkbox into a indeterminate state. Note that the |
description | string | CheckboxDescription | | See CheckboxDescription for usage. |
badge | BadgeProps | | See Badge for usage. |
img | ImgProps | | Renders a thumbnail between the |
Props ending with * are required
Do's and Don'ts
Do |
|---|
Use Checkboxes to turn on and off settings within a form. |
Group related Checkboxes under input label (h4). |
Don't |
|---|
Apply changes made with the Checkbox right away without additional save action. |