Appearance
Label
Nhãn form truy cập được.
ts
import { Label } from "@minap/ui";Examples
Mẫu sống trong Preview; chọn View code khi cần copy.
Usage
tsx
import { Input, Label } from "@minap/ui";
export function Example() {
return (
<>
<Label htmlFor="emb-lbl">Associated label</Label>
<Input id="emb-lbl" placeholder="Linked via htmlFor" />
</>
);
}Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
htmlFor | string | — | Liên kết với id của control |
className | string | — |
Behavior
- Dùng min-h-touch trên hàng checkbox/switch