Appearance
Textarea
Văn bản nhiều dòng, hỗ trợ border invalid.
ts
import { Textarea } from "@minap/ui";Examples
Mẫu sống trong Preview; chọn View code khi cần copy.
Usage
tsx
import { FormField, Textarea } from "@minap/ui";
export function Example() {
return (
<>
<FormField id="emb-notes" label="Notes" error="Too short">
<Textarea placeholder="Write…" />
</FormField>
</>
);
}Props / API
| Prop / API | Type | Default | Notes |
|---|---|---|---|
disabled | boolean | false | |
aria-invalid | boolean | "true" | — | Border destructive |
rows | number | — | rows native; min-h ~88px |
Behavior
- focus ring
- Liên kết FormField