Back to components

Radio Buttons

Radio buttons allow the selection of a single option from a set

To find out more about when to use selection controls, read this section in the style guide about selection control patterns.
A paved road or a path?

Table of Contents

Edit this section, Opens in new window

Overview

Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive selection if you think that the user needs to see all available options side-by-side.

Edit this section, Opens in new window

Usage

Radio Buttons are used when there is a list of two or more options that are mutually exclusive and the user must select exactly one choice. In other words, clicking a non-selected radio button will deselect whatever other button was previously selected in the list.

Labels

Always use a clear and concise label for radio buttons. Be explicit about the action that will follow if the radio button is selected. Labels appear to the right of radio buttons. Use sentence-style capitalization (only the first word in a phrase and any proper nouns capitalized) and no more than three words.

Default selection

A set of radio buttons should default to having one option selected. Never display them without a default selection.

Horizontal

Har du bonus i et annet selskap?

With help text

Har du bonus i et annet selskap?
Vi kan ikke se at du har bilforsikring i If fra før. Siden du ikke har oppparbeidet deg bonus, gir vi deg 40 % startbonus.
Har du bonus i et annet selskap?
Vi kan ikke se at du har bilforsikring i If fra før. Siden du ikke har oppparbeidet deg bonus, gir vi deg 40 % startbonus.
Edit this section, Opens in new window

Behaviours

States

Static
A helpful text
Static with help text
Checked
Disabled
Focused
Invalid
A validation error
Invalid with error message
Invalid + Focus
Checked + Focus
Checked + Invalid
Checked + Disabled

Modifiers

Standalone

A Radio Button can be standalone, in use in other components.

Edit this section, Opens in new window

Anatomy

A paved road or a path?
Radio buttons
  1. Legend (optional)
  2. Vertical radio buttons
  3. Clear and short label
A paved road or a path?
Horizontal radio buttons
  1. Legend (optional)
  2. Horizontal radio buttons
  3. Clear and short label
Edit this section, Opens in new window
Contact us, Opens in new window