Forms · Field
SSR NativeAccessibleField
Coordinates a form label, description, required state, and validation message.
Used for operational notifications.
This slug is already in use.
Astro
---
import { Field } from '@charvesta/cetha';
---
<Field id="email" label="Email" required>
<Input id="email" name="email" type="email" required />
</Field>API reference
| Prop | Type | Default | Description |
|---|---|---|---|
id* | string | — | Shared identifier for the field relationship. |
label* | string | — | Visible field label. |
description | string | — | Optional help text. |
error | string | — | Validation message. |
required | boolean | false | Shows the required indicator. |
class | string | — | Additional classes forwarded to the rendered element. |
Accessibility
Pass matching IDs and aria-describedby values to keep every relationship explicit.