Field
Field wraps native controls with label, hint, error, required state, and ARIA wiring.
Import the public field primitive from the package entrypoint.
import { KuiFieldComponent } from '@kikita-labs/ui';Use kui-field whenever a visible label, hint, error, or required marker is needed.
<div class="basic-field-example">
<kui-field label="Email" hint="Use your work email">
<input kuiInput type="email" placeholder="mira@company.dev" />
</kui-field>
<kui-field label="Project" error="Project name is required" required>
<input kuiInput value="" />
</kui-field>
</div>Inputs verified against @kikita-labs/ui v1.6.1 public typings.
| Name | Type | Default | Description |
|---|---|---|---|
| label | string | — | Visible label shorthand. Prefer this for simple field labels. |
| hint | string | — | Optional help text rendered below the control and wired through aria-describedby. |
| error | string | — | Explicit error text rendered below the control and wired through aria-describedby. |
| hideErrors | boolean | — | Hides automatic, explicit, and projected error messages while keeping invalid state. |
| required | boolean | — | Explicit required marker override. Omit when Signal Forms can infer it. |
| size | 'xs' | 'sm' | 'md' | 'lg' | — | Field spacing and projected control size. |
Keep field semantics native-first. Let kui-field wire ids and descriptions instead of duplicating ARIA by hand.
- Prefer a visible label through
labelor projectedkuiLabel. - Projected
kuiHintandkuiErrorparticipate inaria-describedby. - The field does not replace the native control role.