Skip to content
ZikZuk UI

FormFieldGroup

Stripe FormFieldGroup

A legend over fields side by side — first and last name, city and PIN — that stack on phones. One help line or one shared error sits under the fields; disabled disables every field inside, as a native fieldset.

pnpm add @zikzuk/ui
import { FormFieldGroup } from "@zikzuk/ui";

Name, and an address with an error

Name

As printed on the PAN card.

Address

When to use

  • Fields that together make one answer.

Not for

  • Unrelated fields that happen to be short.

Props

PropTypeDescription
legendReactNodeWhat the fields answer.
descriptionReactNodeUnder the legend.
helpReactNodeOne grey line under the fields.
errorReactNodeReplaces help; red, announced, marks the group invalid.
layout"row" | "column"
Default "row"
column always stacks.
disabledbooleanDisables every field.
classNamestringExtra classes on the outer element.