Go Main page
Go Main page

Web components

cover

components

RadioButton

v.1.0.0 | Saturn

Allow the user to select one item from a group.

Component

Play with the component with our playground.

Anatomy

Foo

NameDescription

1

Icon
Required
Indicates the selected state.

2

Title
Describes the reason for the selection.

3

Label text
Required
Describes the action that will occur if a user taps a radiobutton.

4

Context text
Gives more information about the action described on the label.

Variants

  • Default unselected: A default state communicates an interactive component or element.
  • Default selected: Displays the on state checkbox.
  • Disabled unselected: A disabled state communicates a noninteractive component or element.
  • Disabled selected: A disabled state communicates a noninteractive component or element.
  • Keyboard focus: A keyboard focus state communicates when a user has highlighted an element, using an input method such as a keyboard or voice.

Unselected

Foo

Selected

Foo

Layout

Padding between elements

  • The indicated distances between the elements must be respected.
  • Related text with inline link

  • If we have a text with a link it can be placed after the component as a related element.
  • Several lines

  • When the label has several lines, the text will be aligned at the top with the radio button.
  • Options

    Minimum items

  • Since it is an exclusionary selection item, it must always contain a minimum of 2 items.
  • No maximum items

  • It may contain as many items as necessary.
  • Special case

  • For special cases, we can use each radio with a bold title but it must be justify.
  • Do's and dont's

    Foo

    Do’s

    The user will only be able to select a single option.

    Foo

    Don’t

    For sets with multiple selection we will use the Checkbox component.