Textarea

A multiline text input field

A textarea component for multiline text input, visually aligned with the Input component.

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

export default function Example() {
  return (
    <Textarea
      placeholder="Write your message here"
      rows={4}
    />
  );
}

Installation

bash
liminal add textarea

Usage

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

export default function Example() {
  return (
    <Textarea
      placeholder="Write your message here"
      rows={4}
    />
  );
}

Examples

Error state

Use aria-invalid="true" to show error styling, consistent with Input.

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

export default function Example() {
  return (
    <Textarea
      placeholder="Write your message here"
      aria-invalid="true"
    />
  );
}

API

PropTypeDefaultDescription
rowsnumber-Number of visible text rows.
placeholderstring-Placeholder text when empty.
aria-invalidboolean-Set to true to show error border and styling.