Fieldset

Groups related form fields with a shared legend

Preview

Shipping address

Installation

Usage

Examples

With Radio Group

Compose Fieldset with RadioGroup using the render prop to merge elements.

Notification preferences

With Checkbox Group

Compose Fieldset with CheckboxGroup using the render prop.

Permissions

Select which permissions to grant this user.

API Reference

The Fieldset component is built on top of Base UI's Fieldset. All Base UI props are supported.

For the complete Base UI API, see the Base UI Fieldset documentation.

Props

Fieldset

Groups a shared legend with related controls. Renders a <fieldset> element. Supports the render prop for composing with other components like RadioGroup or CheckboxGroup.

FieldsetLegend

An accessible label automatically associated with the fieldset. Renders a <div> element (not a native <legend> to avoid browser styling issues).