Cnippet

Textarea

Forms 4

About

A multi-line text input field with auto-sizing, small/default/large sizes, disabled and invalid states built on Base UI.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Textarea to your project and fits it to your theme.

Code

How Textarea is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

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

export default function TextareaDisabledDemo() {
  return (
    <div className="w-full max-w-sm">
      <Textarea disabled placeholder="Can't type here" />
    </div>
  );
}

Dependencies

More by Cnippet

View all
  • Team

    Team

    1.3K
  • Davincho Hero-1

    Davincho Hero-1

    709
  • Aero Hero-3

    Aero Hero-3

    618
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    560
  • Features

    Features

    532
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    486
  • Blogs

    Blogs

    404
  • Aero Hero-1

    Aero Hero-1

    378

More in Forms

View all
  • Login 1

    Login 1

    63
  • Premium Auth

    Premium Auth

    570
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    18
  • Book A Demo 1

    Book A Demo 1

    91
  • Authentication Card

    Authentication Card

    52
  • Card Studio

    Card Studio

    47
  • Login Card

    Login Card

    35