Components · Form & Input
Fieldset
BetaAdded v6.1.0
Groups related fields under a legend; disabling it disables everything inside.
import { Fieldset } from '@nexub/react';Playground
Props
<Fieldset legend="Billing address" description="Printed on every invoice." className="w-full max-w-sm">…</Fieldset>Examples
Grouped fields
States
defaultdisabled
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| legendrequired | React.ReactNode | — | The group’s name, read before each field inside it. |
| description | React.ReactNode | — | Hint under the legend, linked with aria-describedby. |
| disabled | boolean | — | Disables every control inside, natively. |
Accessibility
Notes
Renders a native `<fieldset>` and `<legend>`; screen readers announce the legend on entering the group.
On iOS & Android
Web only
Fieldset has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.