Skip to content

Search Feitio

↵ opens the first↑↓ chooseEsc closes

Fieldset

The title of a group of fields or options that answer a single question.

On this page

Playground

Notify by
Hint
Background
HTML
<fieldset class="feitio-fieldset"><legend class="feitio-label">Notify by</legend><div class="feitio-choices"><label class="feitio-choice"><input type="checkbox" checked>Discord</label><label class="feitio-choice"><input type="checkbox">E-mail</label></div></fieldset>

When to use

When not to use

Examples

When to remind?São Paulo time

A group with the question

The title is the question; the hint sits right under it (space-1); the group a little further (space-3); the group error, space-2 from the last option.

Show code
HTML
<fieldset class="feitio-fieldset">
  <legend class="feitio-label">Quando lembrar?</legend>
  <span class="feitio-hint">Horário de São Paulo</span>
  …
</fieldset>

Anatomy

When to remind?São Paulo time
  1. Title: the question of the whole group.
  2. Hint, optional: right under the title (space-1).
  3. The group: options or fields, a little further (space-3).

Accessibility

Attributes

AttributeValuesWhat for
class="feitio-fieldset"requiredThe titled group, with the scale’s spacing.
<legend>the questionThe group’s title.
class="feitio-hint"optionalThe hint, space-1 from the title.
aria-invalid="true"with an errorThe message below the group.
Top