Radio Buttons
Radio buttons allow users to select a single option from a set of options.
Default Example
When to Use
- Use radio buttons when only one option may be selected and the set of options need to be visible on the page.
Examples
- Default example (shown above)
- Default with Error Example
Usage
Separate radios should not be arranged next to each other, instead should always be vertical.
Examples
Default with Error Message
Developer Notes
Order Matters
The <input>
element must be the first item inside of the radio container. Otherwise the disabled
state will not work properly.