Skip to content

FieldGroup

Form field wrapper with label and error.

Import

tsx
import { ZFieldGroup } from "@zurto/ui";

Usage

tsx
<ZFieldGroup label="Username" required error="This field is required">
  <ZInput name="username" />
</ZFieldGroup>

Props

PropTypeDefaultDescription
labelstringField label
descriptionstringHelp text
errorstringError message
requiredbooleanfalseRequired indicator

Released under the MIT License.