Component docs
Loading
import { Fieldset } from "@pixxl-tools/components";
// In Server Components:
import { Fieldset } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
legend | ReactNode | — | — |
description | ReactNode | — | Supporting text. |
legendReactNode
descriptionReactNode
Supporting text.
Other props are passed to the root element (FieldsetHTMLAttributes<HTMLFieldSetElement>), including className, style, id and aria-* attributes.
<Fieldset legend="Size">
<NumberField aria-label="Width" value={12} />
<NumberField aria-label="Height" value={8} />
</Fieldset>