Skip to content
Forms

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

PropTypeDefault
value bindable
string''
invalid
booleanfalse
autosize

Grow with the content instead of scrolling.

booleanfalse
class
string—

Anything else is forwarded to the underlying element, typed as HTMLTextareaAttributes.

See also

cock. Yes, it stands for core component kit. We checked twice.