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
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | – | Field label |
description | string | – | Help text |
error | string | – | Error message |
required | boolean | false | Required indicator |