Skip to content

Search Feitio

↵ opens the first↑↓ chooseEsc closes

Radios

One choice among a few mutually exclusive options, all in view.

On this page

Playground

How often?
Layout
State
Background
HTML
<fieldset class="feitio-fieldset"><legend class="feitio-label">How often?</legend><div class="feitio-choices"><label class="feitio-choice"><input type="radio" name="pg-r" value="Every day">Every day</label><label class="feitio-choice"><input type="radio" name="pg-r" value="Every week" checked>Every week</label><label class="feitio-choice"><input type="radio" name="pg-r" value="Every month">Every month</label></div></fieldset>

When to use

When not to use

Examples

How often?

How often?

One below the other, in a Fieldset with the question.

Show code
HTML
<fieldset class="feitio-fieldset">
  <legend class="feitio-label">Com que frequência?</legend>
  <div class="feitio-choices">
    <label class="feitio-choice"><input type="radio" name="frequencia" value="uma-vez">Uma vez</label>
    …
  </div>
</fieldset>

States

None chosen
Chosen
Error
Pick a priority
Disabled

Do and don’t

Do

One below the other, and none pre-selected when the choice matters.

Don’t

Options crammed in one line: hard to see which circle belongs to which text.

Accessibility

Attributes

AttributeValuesWhat for
class="feitio-choices"aroundspace-2 between options.
class="feitio-choice"on the <label>Circle and text clickable together.
namethe same on allOne choice per group.
checked—Only when there is a sensible default.
Top