Skip to content

Textarea

A multi-line text field in the Input's surface, wired into Field like Input is.

Base UI0.6 kB gzipSource Registry JSON

Textarea playground

Props

Installation

npx shadcn@latest add https://sproutboat.com/ikada/r/textarea.json

The CLI writes components/ikada/textarea.tsx and merges the ikada theme into your CSS. Or take it from the package: import { Textarea } from "@sproutboat/ikada";

Usage

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

<Textarea aria-label="Description" placeholder="What this app does" rows={3} />

Examples

In a Field

Shown on the project page.

Error

Syntax error near FROM.

Disabled

Props

TextareaProps
PropTypeDescription
classNamestringClasses merged onto the root element, after ikada's own.
invalidbooleanMarks the field invalid: danger ring and aria-invalid. Prefer the Field error.
monobooleanMonospace face for code, SQL and JSON.

Also takes every prop of Omit<ComponentProps<"textarea">, "className">.

Source: src/components/textarea.tsx