No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

Form Fieldset

Fieldsets group together fields within a form.

It's a semantic group, not necessarily a visual one. This component however provides a legend prop to help visually segment fieldsets.

Zoning

Figma is not configured

Style

Group logical blocks into a fieldset.

If the fields are even more closely related, display them on the same line using Row.

Figma is not configured
Frequency
minutes

States

Error

A fieldset usually does not carry error state. Its individual fields do.

Figma is not configured
Frequency
minutes

Repeat from is invalid

In case of more than one error or a horizontal fieldset, display the errors under each affected field.

Figma is not configured
Frequency
minutes

Repeat from is invalid

Repeat to is invalid

Content

Legend

Provide a legend to the fieldset to help contextualize its contents.

Inline message

Field validation may sometime be more complex than on a single field.

If the broken validation rule benefits from a single point of explanation, use an InlineMessage within the affected Fieldset instead.

This is the only exception to the rule. Errors must otherwise be displayed under each field.

Figma is not configured

Interactions

Conditional fieldsets

A conditional fieldset appears only when previous conditions are met.

The trigger can be any "on / off" interactions available in a form:

  • A checkbox has been activated
  • A radio button has been selected
  • A switch has been toggled
  • A select field has been set to a specific value
  • A button has been pressed

Use sparingly as it makes a form harder to predict and understand at a glance.

Create an account
.info

Usage

N/A

Accessibility

N/A