kemiljk

Textarea

Forms

About

An auto-growing textarea form field with label, description and error message support, which expands to fit its content using native field-sizing instead of a JS resize handler.

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/kernel-textarea";

export default function TextareaWithErrorDemo() {
  return (
    <div className="flex w-full max-w-sm items-center justify-center p-8">
      <Textarea
        label="Message"
        placeholder="Write something…"
        description="Markdown is supported."
        errorMessage="A message is required."
        invalid
        required
      />
    </div>
  );
}

More by kemiljk

View all
  • Switch

    Switch

    8
  • Color Picker

    Color Picker

    3
  • Combobox

    Combobox

  • Progress

    Progress

  • Navigation Menu

    Navigation Menu

  • Number Field

    Number Field

  • Toggle

    Toggle

  • Label

    Label

More in Forms

View all
  • Login 1

    Login 1

    64
  • Premium Auth

    Premium Auth

    571
  • 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