Textarea
Multi-line text input. Shares input token styling.
Examples
Default
With Label
Disabled
With Content
Invalid
Textarea with error styling.
With Button
Textarea with a send button.
Installation
pnpm add @rokle/components @rokle/tokensInstalls with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.
Usage
import { Textarea } from "@rokle/components";import { Textarea } from "@rokle/components";
export function Example() {
return <Textarea />;
}Source
The implementation source for this component. Copy it into your project and customise.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| placeholder | string | - | Placeholder text. |
| rows | number | 3 | Visible rows. |
| disabled | boolean | false | Disable interaction. |