Skip to content

Form ​

Helper react-hook-form — chỉ subpath (không phải named export chính của @minap/ui).

ts
import { Form, FormField, FormItem, FormControl, FormLabel, FormMessage } from "@minap/ui/form";

Sample ​

Props / API ​

Prop / APITypeDefaultNotes
…formUseFormReturn—Spread useForm() lên Form
FormField nameFieldPath—Field path RHF
rulesRegisterOptions—Validation

Behavior ​

  • Tránh stub react-server RHF của App Router
  • Ưu tiên FormField MINAP trừ khi cần RHF
  • Category: forms-inputs
  • Catalog gallery: /catalog/forms-inputs

MINAP UI · SoT docs/ (VI + thuật ngữ EN)