Appearance
FormField
Helper MINAP: gắn id, label, hint, error → aria-invalid / aria-describedby.
ts
import { FormField } from "@minap/ui";Sample
Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
id | string | — | Bắt buộc — id của control |
label | string | — | Bắt buộc |
hint | ReactNode | — | Thông báo hint tùy chọn |
error | ReactNode | — | Gán aria-invalid cho child |
children | single control element | — | Input/SelectTrigger/… |
Behavior
- Liên kết FR-005
- Hoạt động với Input, Textarea, SelectTrigger
Related
- Category:
forms-inputs - Catalog gallery:
/catalog/forms-inputs