Skip to content
nexubDesign System
v11.9.0

Components · Form & Input

Fieldset

BetaAdded v6.1.0

Groups related fields under a legend; disabling it disables everything inside.

import { Fieldset } from '@nexub/react';
View as Markdown

Playground

Props

Billing address

Printed on every invoice.

TSX
<Fieldset legend="Billing address" description="Printed on every invoice." className="w-full max-w-sm">…</Fieldset>

Examples

Grouped fields

Billing address

Printed on every invoice.

States

  • Billing address

    Printed on every invoice.

    default
  • Billing address

    Printed on every invoice.

    disabled

Props

Props
PropTypeDefaultDescription
legendrequiredReact.ReactNode—The group’s name, read before each field inside it.
descriptionReact.ReactNode—Hint under the legend, linked with aria-describedby.
disabledboolean—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