Skip to content

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 / APITypeDefaultNotes
orientation"vertical" | "horizontal" | "responsive""vertical"
data-invalidboolean attr—Tông chữ destructive

Behavior ​

  • FieldSet, FieldLegend, FieldGroup

MINAP UI — Soft Periwinkle light, Mobile-First