deepraj21

Glass Textarea

Forms

About

A multi-line glassmorphic text input that grows with its content, with an optional character counter and a footer slot for actions.

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

Code

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

Usage.tsx

"use client";

import * as React from "react";

import { GlassTextarea } from "@/components/ui/glass-textarea";

export default function GlassTextareaDemo() {
  const [value, setValue] = React.useState("");

  return (
    <div className="flex w-full items-center justify-center bg-background p-10">
      <GlassTextarea
        placeholder="Write a message…"
        value={value}
        onChange={(e) => setValue(e.target.value)}
        showCount
        maxLength={240}
        className="w-full max-w-sm"
      />
    </div>
  );
}

More by deepraj21

View all
  • Glass Sidebar

    Glass Sidebar

    51
  • Glass Message

    Glass Message

    42
  • Glass Tab Bar

    Glass Tab Bar

    32
  • Glass Date Picker

    Glass Date Picker

    27
  • Glass Notification

    Glass Notification

    15
  • Glass Tabs

    Glass Tabs

    15
  • Glass Input

    Glass Input

    11
  • Glass Switch

    Glass Switch

    11

More in Forms

View all
  • Form

    Form

    7
  • Contact Form

    Contact Form

    32
  • Login 2

    Login 2

    16
  • Contact Card

    Contact Card

    1.1K
  • Book A Demo 1

    Book A Demo 1

    94
  • Paper Plane

    Paper Plane

    80
  • Premium Auth

    Premium Auth

    613
  • Authentication Card

    Authentication Card

    52