Appearance
Field
Layout field (shadcn). Cho label/hint/error ưu tiên FormField MINAP.
ts
import { Field, FieldLabel, FieldContent, FieldDescription, FieldError } from "@minap/ui";Examples
Mẫu sống trong Preview; chọn View code khi cần copy.
Usage
tsx
import { Field, FieldContent, FieldLabel, Input } from "@minap/ui";
export function Example() {
return (
<>
<Field>
<FieldLabel htmlFor="fld">Field label</FieldLabel>
<FieldContent>
<Input id="fld" />
</FieldContent>
</Field>
</>
);
}Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
orientation | "vertical" | "horizontal" | "responsive" | "vertical" | |
data-invalid | boolean attr | — | Tông chữ destructive |
Behavior
- FieldSet, FieldLegend, FieldGroup