Textarea

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

This component uses shadcn/uiDocs
Loading...
import { Textarea } from 'ui'
 
export function TextareaDemo() {
  return <Textarea placeholder="Type your message here." />
}

Installation

npx shadcn-ui@latest add textarea

Usage

import { Textarea } from '@/components/ui/textarea'
<Textarea />

Examples

Default

Loading...
import { Textarea } from 'ui'
 
export function TextareaDemo() {
  return <Textarea placeholder="Type your message here." />
}

Disabled

Loading...

With Label

Loading...

With Text

Loading...

With Button

Loading...

With addon

An addon places supporting content inside the same bordered field as the textarea. Wrap InputGroupTextarea and InputGroupAddon in InputGroup, and use align="block-end" to place the addon below the text.

Loading...

Form

Loading...