Textarea

inputs

Displays a form textarea or a component that looks like a textarea.

Preview

Installation

npm install @launchapp/design-system
Import
import { Textarea } from "@launchapp/design-system";

Examples

Basic Textarea

<Textarea placeholder="Type your message here." />

With Label

<div className="grid w-full gap-1.5">  <Label htmlFor="message">Your message</Label>  <Textarea placeholder="Type your message here." id="message" /></div>

Props

PropTypeDefaultDescription
placeholder
stringPlaceholder text.
disabled
booleanfalseDisables the textarea.
rows
numberNumber of visible text rows.
value
stringControlled value.
onChange
React.ChangeEventHandler<HTMLTextAreaElement>Change event handler.
className
stringAdditional CSS classes.