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 Message

    Glass Message

    1
  • Glass Tweet Card

    Glass Tweet Card

  • Glass Scroll Stack

    Glass Scroll Stack

  • Glass QR Code

    Glass QR Code

  • Glass Accordion

    Glass Accordion

  • Glass OTP Input

    Glass OTP Input

  • Glass Terminal

    Glass Terminal

  • Glass Snippet

    Glass Snippet

More in Forms

View all
  • Premium Auth

    Premium Auth

    516
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    70
  • Login 1

    Login 1

    52
  • Form

    Form

    16
  • Login Card

    Login Card

    26
  • Authentication Card

    Authentication Card

    47
  • Login Form

    Login Form

    6