Radio
Overview
Radio Buttons allow users to choose one option from a predefined set.
Live demo
Usage
Do
Use clear and descriptive labels for each Radio Button to ensure users easily understand the available options.
Group Radio Buttons when presenting exclusive choices within a set. This enhances user comprehension and simplifies decision-making.
Maintain appropriate spacing between Radio Buttons to prevent accidental selections.
Keep the styling consistent across the interface. Consistency aids in recognition and provides a cohesive visual experience for users.
Don't
Avoid using Radio Buttons for scenarios where users are expected to make multiple selections. Radio buttons are designed for singular, exclusive choices.
Avoid using overly complex or ambiguous labels.
Ensure there is sufficient contrast between the Radio Button and its background.
Size
Radio Buttons come in three different sizes: small, medium, and large. Medium is the default and the most frequently used option.
| Example | Size | When to use |
|---|---|---|
| Medium | This is the default size and the most commonly used size. When in doubt, use the medium size. | |
| Small | Use when space is constricted. | |
| Large | Use when there is a lot of space to work with, or alongside other large components. |
States and Interactions
The Radio Button should change its appearance based on its state to provide feedback to users.
| Example | state | When to use |
|---|---|---|
| Enabled | The default state when the radio button is not interacted with. | |
| Hover | Visual changes when the user hovers over the radio button. | |
| Checked | Visual changes when the user actively interacts with the radio button (e.g. clicks). | |
| Focus | The state when the radio button receives keyboard focus. | |
| Error | The state when the radio button receives keyboard focus. | |
| Disabled | Non-interactive state, shows that it exists but is not available in that circumstance. |
Accessibility
Ensure users can navigate and select options using keyboard controls.
Ensure Radio Buttons have sufficient contrast with the background and surrounding elements.
Provide alternative text for screen readers.
iOS guidiance
Along with the guidance above, there is some iOS specific guidance for this component.
Follow Apple's Human Interface Guidelines for a consistent and native user experience.
Consider iOS conventions for animations, touch interactions, and overall visual styling.