Skip to content

Radio Button

Edit on GitHub
@volvo-cars/css v2.3.0@volvo-cars/react-forms v2.0.0

Radio buttons allow a single selection from a set of options. They should always be used in a group and it should always be valid to select only one of the options

Radio button anatomy

  1. Label
  2. Container
  3. Message (Optional)
  4. Circle
  5. Container filled

Use Radio button for single selection from a set of options.

  • Use Radio button to select one option from a list
  • Use Radio button to present a list containing sub-selections
  • Use Radio button to turn an item on or off in a desktop environment
  • Do not use Radio button when more than one item can be selected from a list. Use checkboxes instead.

The unselected state for a Radio button with label refers to a radio button that has not been selected by the user, and it is accompanied by a text label that describes what the Radio button is for.

Unselected radio button variant

The selected state for a Radio button with label refers to the status of a Radio button when it has been selected by the user. This selection is indicated by a ellipse and filled container.

Selected radio button variant

Radio buttons can be Selected and Unselected. Radio buttons have Enabled, Disabled, Hover, Focused and Pressed states when not selected.

The Default state in Radio button refers to how it appears when it has not been interacted with. In this state, it typically consists of a container and a text label.

Unselected radio button in default state

Displaying an Unselected Radio button with a label in its Default state.

Selected radio button in default state

Displaying an Selected Radio button with a label in its Default state.

A Hover state for a Radio button is displayed when the user moves their cursor over the Radio button, before they actually click on it. It’s usually used to indicate that the checkbox is interactive. There is no Hover state when in a Selected state.

Unselected radio button in hover state

Displaying an Unselected Radio button with a label in its Hover state.

The Pressed state for a radio button refers to the visual representation when a user clicks or touches the checkbox but hasn’t yet released it. This state often indicates that the Radio button is active and ready to change status once the click or touch is released. There is no Pressed state when in a Selected state.

Unselected radio button in pressed state

Displaying an Unselected Radio button with a label in its Pressed state.

The Disabled state of a Radio button refers to a user interface element that users cannot interact with, typically because certain conditions haven’t been fulfilled.

Unselected radio button in disabled state

Displaying an Unselected Radio button with a label in its Disabled state.

Selected radio button in disabled state

Displaying a Selected Radio button with a label in its Disabled state.

The Error state for a Radio button occurs when it is marked as incorrect. This typically happens when it hasn’t been appropriately filled out or selected as required.

Unselected radio button in error state

Displaying an Unselected checkbox with a label in its Error state.

Selected radio button in error state

Displaying a Selected Radio button with a label in its Disabled state.

Radio buttons in light mode

Displaying Radio buttons in light mode

Radio buttons in dark mode

Displaying Radio buttons in dark mode

Radio buttons are normally placed in a stacked format with a spacing of 16px spacer between each other.

Radio button vertical spacing

Radio buttons using a 16px spacer when grouped.

Radio button horizontal spacing

Radio buttons horizontal oriented using a 16px spacer between.

Radio button message spacing

Radio buttons and message using a 4px spacer between.

Radio buttons can be placed both horizontally or vertically.

Radio buttons arranged vertically

Displaying Radio buttons with label aligned vertically.

Radio buttons arranged horizontally

Displaying Radio buttons with label aligned horizontally.

Hint messages are short messages used to add more context or purpose.

Radio button with hint message

Displaying a Radio button with label with Hint message.

The Error message is shown when an error occurs. Error messages are shown above the Radio button group together with a change of border color.

Radio button with error message

Displaying a Radio button with label with Error message.

Are used to support error message to explain what needs to be done.

Displaying a Radio Button with label with Error message and Hint message.

Label: Max 40 char

Form message: Max 150 char

add example

The Radio button component uses the default keyboard focus wrapped around the container.

Radio button with keyboard focus

Displaying Radio button with label on keyboard focus.

Use radio buttons for single selection

Use Radio buttons for single selection from a set of options.

Use checkboxes for multiple selection

Use Checkboxes instead of Radio buttons when more than one item can be selected from a list.

Don't use radio buttons for multiple selection

Don’t use Radio buttons when more than one item can be selected from a list.