Textarea
Multi-line input that can grow with its content.
import
import { Textarea } from '@joshicodes/cock';Autosize
API
Read out of the component sources at build time, so it matches the version you installed.
Every component also takes class, merged
through tailwind-merge so your utility wins.
Props of Textarea
| Prop | Type | Default |
|---|---|---|
value bindable | string | '' |
invalid | boolean | false |
autosize Grow with the content instead of scrolling. | boolean | false |
class | string | — |
Anything else is forwarded to the underlying element, typed as HTMLTextareaAttributes.