Radio
On this page
Radio
Use the Radio
component when users can select only one option from a short list and you want all the options to be visible. Radio
maps to a radio input and a label.
Import component
import { Radio } from 'rimble-ui';
Example
Props
color
(optional)
Default value:
'primary'
label
string
(optional)
theme
object
(optional)
Default value:
theme
Styled System Props
Radio
uses COMMON
, LAYOUT
, POSITION
, FLEXBOX
, BORDERS
groups of Styled System props.
Design guidelines
Some best practices for using Radio
in your product.
Always use with a label or heading
Do
Use a label to provide users with instructions on what to select.
Would you like alerts when the price changes?
Yes
No
Don't
Don't just provide a user with unlabelled choices.
Give me price changes
Don't give me price changes
Only use for binary decisions
Do
Radios are for times when your users can choose only one option.
Would you like alerts when the price changes?
Yes
No
Don't
Checkboxes are not suitable for decisions where you can select multiple options.
Choose any currencies you'd like to track
Ether (ETH)
Bitcoin (BTC)
Ethereum Classic (ETC)
Litecoin (LTC)
Only use for small groups of options
Do
Use a Select component when there are lots of options to choose from.
Choose your default currency
Don't
Don't present lots of choices to a user like this as it will clutter your interface.
Choose your default currency
ETH - Ether
BTC - Bitcoin
USD - Dollars
GBP - Pounds
XRP - Ripple
GNO - Gnosis
GNT - Golem
REP - Augur
YEN
INR - Rupee