Field
Lightweight wrapper primitives for composing labels, controls, helper text, and errors.
Use the name people recognize in your workspace.
Installation
npx @glass-ui-kit/cli add fieldUsage
Examples
Default
Use Field to keep label, control, and supporting copy grouped with consistent spacing.
Use the name people recognize in your workspace.
Error State
Compose FieldError alongside standard inputs when validation fails.
We'll only use this for account notifications.
Please enter a valid email address.
Textarea
The same pattern works for multiline fields too.
Keep it concise. You can edit this later.
Styling & API
Field is a plain structural wrapper. FieldDescription and FieldError are text primitives; pair them with the existing Label, Input, and Textarea components.