Radio Button

Radio buttons let users select a single option from a group of options

radioButton/main

Resources

Intro & Anatomy

Radio buttons are interactive form controls that allow users to make a single selection from multiple options.

Use radio buttons when users must choose exactly one option from a group, e.g. selecting payment methods or shipping options.

MDX offers radio buttons with or without borders for different visual preferences.

radioButton/anatomy

 


 

Options & Styles

Label

Labels are always required for radio buttons to clearly communicate the option or choice being presented to users.

radioButton/label

Description

Description is optional and provides additional context about the radio buttons option.

radioButton/descr

Variants

MDX offers two radio buttons variants:

with border and inside padding
without border and no inside padding

radioButton/variants

States

Radio buttons have multiple interactive states for both unselected & selected:

Default for standard appearance
Hover for interactive feedback
Error for validation failures requiring user attention (only for radio button groups)

radioButton/states

Disabled

A disabled radio buttons shows that an option exists but isn't currently available, e.g. when certain conditions haven't been met or prerequisites are missing.

The cursor changes to indicate the radio button is not interactive.

radioButton/disabled

 


 

Radio Button Group

Group

Radio Button groups present multiple related options where users can select any combination of choices.

Radio Button groups always require a label to provide clear context for the set of options being presented.

radioButton/group1

Error

Error messages appear when validation fails, e.g. when required option isn't selected or selection limits are exceeded.

Display messages below the radio button group with clear guidance.

radioButton/group2

 


 

Best Practice & Usage

Radio buttons should be used for mutually exclusive selections where users must choose exactly one option from a group.

Use clear, descriptive labels and ensure all options are visible simultaneously to help users make informed decisions.

For binary on/off choices or immediate state changes, use toggle switches instead.

radioButton/Usage/DO-single
radioButton/Usage/DONT-multiple
radioButton/Usage/DO-descriptive
radioButton/Usage/DONT-combine
radioButton/usage/horizontally
radioButton/Usage/DONT-horizontally
radioButton/Usage/DO-max7
radioButton/Usage/DONT-longer
radioButton/mobile/do1
radioButton/mobile/dont
radioButton/mobile/do
radioButton/mobile/dont

 


 

Theming

You can customise colours, border width and radius, font styles, spacing, and paddings to match your design requirements.

For radio button groups, you can also adjust spacing between the group label, individual checkbox items.