Skip to content
Gloss v2.0.0
Source
Components

Radio

Native radio, the same accent-color treatment as Checkbox.

Basic

Radio
Markup
<label>
  <input type="radio" name="demo-radio-1" checked="" />
  Weekly
</label>
<label>
  <input type="radio" name="demo-radio-1" />
  Monthly
</label>

As a group

Interval
Repeat
Markup
<fieldset>
  <legend>Repeat</legend>
  <label>
    <input type="radio" name="demo-radio-2" checked="" />
    Every week
  </label>
  <label>
    <input type="radio" name="demo-radio-2" />
    Every month
  </label>
  <label>
    <input type="radio" name="demo-radio-2" />
    Every year
  </label>
</fieldset>

API

Element / attributeValuesNotes
input[type="radio"]Required base — no class. Tinted with accent-color.
checkedboolean
namestringGroups mutually exclusive radios.
labeltext contentWrap the input directly — label:has(> input[type="radio"]) is what applies the row layout.