jshguo

Textarea

Forms 2

About

Multi-line text input component with auto-sizing and validation states.

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

"use client"

import { Textarea } from "@/components/ui/interfaces-textarea"

export default function TextareaWithLabelDemo() {
  return (
    <div className="flex w-full min-h-screen items-center justify-center bg-background p-8 overflow-hidden">
      <div className="w-full max-w-md space-y-2">
        <label htmlFor="bio" className="text-sm font-medium leading-none">
          Bio
        </label>
        <Textarea
          id="bio"
          placeholder="Tell us a bit about yourself"
          defaultValue="I'm a software engineer who loves building UIs."
          className="min-h-32 resize-none"
        />
        <p className="text-muted-foreground text-sm">
          You can <span className="text-foreground">@mention</span> other users and organizations.
        </p>
      </div>
    </div>
  )
}

More by jshguo

View all
  • Progress

    Progress

    426
  • Select

    Select

    369
  • Input OTP

    Input OTP

    160
  • Interfaces Carousel

    Interfaces Carousel

    160
  • Switch

    Switch

    136
  • Hover Card

    Hover Card

    109
  • Card

    Card

    85
  • Interfaces Breadcrumb

    Interfaces Breadcrumb

    63

More in Forms

View all
  • Premium Auth

    Premium Auth

    500
  • Login 1

    Login 1

    52
  • Book A Demo 3

    Book A Demo 3

    83
  • Authentication Card

    Authentication Card

    47
  • Book A Demo 1

    Book A Demo 1

    69
  • Contact Card

    Contact Card

    1K
  • Login Card

    Login Card

    32
  • Login 2

    Login 2

    7