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

    10
  • Color Picker

    Color Picker

    6
  • Combobox

    Combobox

    1
  • Label

    Label

    1
  • Resizable

    Resizable

    1
  • Hover Card

    Hover Card

    1
  • Progress

    Progress

  • Navigation Menu

    Navigation Menu

More in Forms

View all
  • Form

    Form

    7
  • Login 2

    Login 2

    16
  • Contact Form

    Contact Form

    33
  • Contact Card

    Contact Card

    1.1K
  • Book A Demo 1

    Book A Demo 1

    95
  • Premium Auth

    Premium Auth

    613
  • Onboarding Stepper

    Onboarding Stepper

    13
  • Authentication Card

    Authentication Card

    52