Form fields that allow users to pick a single item
About this component
Radio buttons are a form component that allows users to select a single item from a list of options.
Why we use this component
We use this component when we want users to be able to only pick one option from a list.
If there are lots of options, you should think about whether a select component would work better.
If users need to be able to pick more than one option from a list, use the checkboxes component instead.
Other versions of this component
Radio buttons with hint text
Hint text can be added to radio buttons. You can use hint text for more details about a radio button. You should avoid adding hint text to the radio button’s label element.
Small radio buttons
Although small radio buttons appear smaller, their clickable area remains the same as normal radio buttons. This makes them easier for users to select.
The error state for radio buttons marks the entire fieldset.
Inline radio buttons
If there are few options and each has a short label, they can be placed inline.
If you are using an inline display for a yes/no choice, make ‘Yes’ the first option.
Radio buttons can be tracked through the original page path and a data attribute showing the question type and value selected.
The data attribute is added automatically by the Design System’s “tracking” script.
We use a custom style for radio buttons so that they’re larger and easier to use than the standard radio buttons defined by the user’s browser. We also use a custom style to make their focussed and selected states clearer.
Feedback, help or support
If you need any help or want to give any feedback you can e-mail us at: email@example.com