Component
Input
Single-line text entry for forms and filters.
Multi-line text entry for notes and descriptions. Wrap with Field.
Multi-line text in lg, md, and sm. Field label sits on top or start (left). Not Input.
Medium size, label on top, with a hint. Wrap with Field. Do not add start slots. Variants shows sizes, a start label and an error.
Keep it under 240 characters
import { Textarea } from "agentic-ds-kit";From contracts/textarea.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| describedBy | string | No | — | Id(s) for aria-describedby on the textarea. Field passes its hint or error id. |
| id | string | Yes | — | — |
| size | sm | md | lg | No | md | — |
| rows | number | No | — | optional native rows; height also comes from size |
| placeholder | string | No | — | — |
| disabled | boolean | No | false | — |
| error | boolean | No | false | — |
| defaultValue | string | No | — | — |
| value | string | No | — | controlled. When set, do not also rely on defaultValue. |
| onChange | function | No | — | (value: string) => void |
| name | string | No | — | — |
| demo | hover | focus | No | — | playground only |