Skip to content

FieldGroup ​

Nhóm fieldset MINAP kèm legend.

ts
import { FieldGroup } from "@minap/ui";

Examples ​

Mẫu sống trong Preview; chọn View code khi cần copy.

Usage ​

tsx
import { FieldGroup, FormField, Input, Textarea } from "@minap/ui";

export function Example() {
  return (
    <>
      <FieldGroup legend="Profile">
        <FormField id="fg-a" label="Display name">
          <Input />
        </FormField>
        <FormField id="fg-b" label="Bio">
          <Textarea />
        </FormField>
      </FieldGroup>
    </>
  );
}

Props / API ​

Prop / APITypeDefaultNotes
legendReactNode—Legend của fieldset
childrenReactNode—Các hàng FormField

Behavior ​

  • fieldset ngữ nghĩa

MINAP UI — Soft Periwinkle light, Mobile-First