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.
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.
Group logical blocks into a fieldset.
If the fields are even more closely related, display them on the same line using Row
.
A fieldset usually does not carry error state. Its individual fields do.
In case of more than one error or a horizontal fieldset, display the errors under each affected field.
Provide a legend to the fieldset to help contextualize its contents.
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.
A conditional fieldset appears only when previous conditions are met.
The trigger can be any "on / off" interactions available in a form:
Use sparingly as it makes a form harder to predict and understand at a glance.
N/A
N/A