v1.1.6

Fieldset

Installation

Install yarn add @spark-web/fieldset
Source GitHub.com
Bundle unpkg.com

Use the Fieldset to group thematically related controls in a form.

Billing address

Example

Legend

Provide a caption that describes the set of form fields.

Name

Props

PropTypeDescription

children?

ReactNode: string | number | false | true | {} | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

The form fields that comprise the set.

data?

DataAttributeMap

Sets data attributes on the component.

gap?

"small" | "medium" | "large"

Sets the size of the gap between the legend and children.

Default: "small"

id?

string

An identifier which must be unique in the whole document.

legend?

string

Provide a caption that describes the set of form fields.

@see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend

© 2023 Brighte Capital Pty Ltd