Checkbox
On this page
Checkbox
Use the Checkbox
component when users can choose 0 or more than 1 options from a list. Checkbox maps to a checkbox input and a label.
Import component
import { Checkbox } from 'rimble-ui';
Examples
Different ways to use the Checkbox
component
Default checkbox
Checked
Disabled
Checked and disabled
Props
color
(optional)
Default value:
'primary'
label
string
(optional)
theme
object
(optional)
Styled System Props
Checkbox
uses COMMON
, LAYOUT
, POSITION
, FLEXBOX
, BORDERS
groups of Styled System props.
Design guidelines
Some best practices for using Checkbox
in your product.
Always use with a label
Do
Use a label to provide users with instructions on what to select.
Don't
Don't just provide a user with unlabelled choices.
Ether (ETH)
Bitcoin (BTC)
Ethereum Classic (ETC)
Litecoin (LTC)
Only use when users can make multiple selections
Do
Checkboxes are for times when your users can choose multiple options or no options.
Choose any currencies you'd like to track
Ether (ETH)
Bitcoin (BTC)
Ethereum Classic (ETC)
Litecoin (LTC)
Don't
Checkboxes are not suitable for binary decisions like Yes or No.
Would you like alerts when the price changes?
Yes
No
Related components
- Select - when users can only choose one option from a long list
- Radio buttons – When users can only choose one option or the choices are binary like yes/no