Appearance
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 / API | Type | Default | Notes |
|---|---|---|---|
legend | ReactNode | — | Legend của fieldset |
children | ReactNode | — | Các hàng FormField |
Behavior
- fieldset ngữ nghĩa