Skip to content
Logic2BUI

Search docs

Search components and documentation

New
Menu

Textarea

Displays a form textarea that auto-sizes to its content.

Installation

npx logic2b@latest add textarea

Usage

import { Textarea } from "@/components/ui/textarea"

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

API

Textarea renders a native <textarea> and forwards every prop it accepts. It auto-sizes to its content (field-sizing-content) and styles aria-invalid for validation states.

Prop Type Default
placeholder string
value / defaultValue string
disabled boolean false
rows number
className string
...props React.ComponentProps<"textarea">

Examples

With label

Your message will be copied to the support team.

Disabled

With a button