Skip to main content
The Fieldset component provides semantic grouping for related form fields with proper accessibility support.

Import

Basic Usage

Sub-components

Fieldset.Root

Groups related controls with a shared legend. Renders a native <fieldset> element. Key Props:
  • disabled: Whether all contained controls should be disabled (default: false)
State attributes:
  • data-disabled: Present when disabled

Fieldset.Legend

Renders the label for the fieldset. Renders a native <legend> element. Automatically associates with the fieldset via aria-labelledby.

Disabled State

Disable all fields within a fieldset:
The disabled prop on Fieldset.Root cascades down to all Field.Root components within it.

Radio Button Groups

Checkbox Groups

Nested Fieldsets

Styling