Skip to content
Storybook

Radio

One choice from 2–6 options shown together.

Preview

React · live from the Storybook

HTML and CSS

The same component as plain HTML with pixels-ui.css, no framework needed.

Billing

Usage

  • Pre-select the most common option.
  • More than 6 options? Use a Select.

Installation

Included in the core files. No extra install.

HTML
<link rel="stylesheet" href="/css/pixels-tokens.css">
<link rel="stylesheet" href="/css/pixels-ui.css">
<script src="/js/pixels-ui.js" defer></script>

Examples

States

API reference

Class / attributeTypeDescription
px-check px-radioclassRadio row.
px-check__boxclassPut on <input type="radio">.

Figma properties

Radio48 variants · page “Checkbox & Radio Buttons”Open

Radio with label and optional hint. Use for one choice from 2–6 options shown together; group with role=radiogroup and arrow-key navigation. RTL variants place the control on the right. RTL text: Labe…

PropertyTypeValues
LabelText“Monthly billing”
HintText“Pay month to month, cancel any time.”
Show hintBoolean—
SizeVariantSmall Medium
CheckedVariantFalse True
StateVariantActive Hover Pressed Focused Disabled Error
DirectionVariantLTR RTL
Radio / Control24 variants · page “Checkbox & Radio Buttons”Open

The bare radio circle. Tokens: --px-selection-*, --px-radio-*.

PropertyTypeValues
SizeVariantSmall Medium
CheckedVariantFalse True
StateVariantActive Hover Pressed Focused Disabled Error

Design tokens

Component tokens from the Figma Component collection. Override them to restyle just this component.

TokenAliasLight value
--px-selection-gapspacing-sm8px
--px-radio-size-smspacing-1616px
--px-radio-size-mdspacing-2020px
--px-radio-radiusradius-full999px
--px-radio-dot-smspacing-88px
--px-radio-dot-mdspacing-88px

Accessibility

  • Native radios give arrow-key navigation inside the group.
  • Use a fieldset + legend.