Radio

.radio is for input elements which accept text input.

Applicable Elements

Basic Usage

<fieldset class="fieldset">
  <label class="label"><input class="radio" type="radio" name="neta" checked />Iwashi</label>
  <label class="label"><input class="radio" type="radio" name="neta" />Anago</label>
  <div>
    <input class="radio" type="radio" id="wasabi" name="neta" />
    <label class="label" for="wasabi">Tamago</label>
  </div>
</fieldset>

States

<fieldset className="fieldset">
  <label class="label error"><input class="radio error" type="radio" name="drink" checked />Tea</label>
  <label class="label error"><input class="radio error" type="radio" name="drink" />Beer</label>
</fieldset>

<fieldset className="fieldset" disabled>
  <label class="label"><input class="radio" type="radio" name="seasoning" checked />Soy Sauce</label>
  <label class="label"><input class="radio" type="radio" name="seasoning" />Salt</label>
</fieldset>

React component

React component <Input/> is available.
It inherits the error property from a Fieldset component and automatically applies the error style.

※ The disabled state is automatically inherited through the native HTML feature.

Q&A

How to customize the bold line that appears when focused?

You can set outline property in CSS.
Though it is recommended to leave it as default for accessibility.