← Back to Components

Form Fieldset

Semantic form grouping component using fieldset and legend elements for better accessibility and visual organization of related form fields.

Form Fieldset Grouping

Basic Fieldset Usage

Use fieldsets to semantically group related form fields with legend labels for better accessibility and visual organization.

Personal Information
Please provide your personal details
Enter your first name
Enter your last name
MM/DD/YYYY format
Contact Information
Your primary email address
Include area code
Optional

Fieldset Sizes

Fieldsets support three size variants affecting padding and legend typography.

Large Fieldset (lg)
More spacious padding for prominent sections
Medium Fieldset (md)
Standard padding for regular sections
Small Fieldset (sm)
Compact padding for dense layouts

Fieldset States

Fieldsets support error and disabled states for form validation and progressive enhancement.

Preferences & Settings
Please select at least one communication preference
How would you like to receive updates?
How often should we contact you?
Emergency Contact
This section is currently disabled

Complex Fieldset Examples

Real-world examples showing fieldsets with various form controls including checkboxes and radio buttons.

Billing Address
Your billing address
Contact Preferences
Tell us how you'd like to be contacted
Choose your preferred way to receive communications
Select additional communication options