Foundation
Textarea
Multi-line text input. Mirrors Input's chrome and adds optional autoResize.
Examples
Default
<Textarea bind:value placeholder="Tell us about yourself…" />Auto-resize
<Textarea autoResize bind:value placeholder="Auto-resizes as you type." />Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | '' | Bindable text. Use bind:value. |
autoResize | boolean | false | Grow vertically as content overflows. |
minRows | number | 3 | Minimum height in lines (auto-resize floor). |
maxRows | number | 12 | Maximum height in lines before scrolling kicks in. |
...rest | HTMLTextareaAttributes | — | Spread onto the underlying <textarea>. |
Install
CLI
npx @a3tai/mittsu add textarea