Skip to Content
Dither

Dither / components

Textarea

Multi-line text field. Grows with its content.

  • Stable
  • 1 variants
  • 2 props
  • Light & Dark
light

Shown to every member of the workspace.

dark

Shown to every member of the workspace.

Code
import { Label } from "@/components/ui/label";import { Textarea } from "@/components/ui/textarea";export default function TextareaDemo() {  return (    <div className="grid w-full max-w-sm gap-2">      <Label htmlFor="textarea-demo">Release notes</Label>      <Textarea id="textarea-demo" placeholder="What changed in this version?" />      <p className="text-xs text-muted-foreground">Shown to every member of the workspace.</p>    </div>  );}

Installation

npx shadcn add @dither/textarea

Usage

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

<Textarea placeholder="What changed in this version?" />

Props

Prop

Type

Examples

States

light
dark
Code
import { Textarea } from "@/components/ui/textarea";export default function TextareaStates() {  return (    <div className="grid w-full max-w-sm gap-3">      <Textarea aria-invalid aria-label="Release notes" defaultValue="Too short" />      <Textarea disabled aria-label="Disabled field" placeholder="Disabled" />    </div>  );}
Dither · Textareav0.2.0

On this page