ai 2

Glass Textarea

Forms

About

A frosted-glass multi-line text field with five translucent/blurred surface variants (frost, tint, smoke, crystal, depth) for message boxes and comment forms over varied backgrounds.

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

import {
  FrostTextarea,
  TintTextarea,
  SmokeTextarea,
  CrystalTextarea,
  DepthTextarea,
} from "@/components/ui/textarea-glass";

export default function TextareaGlassDemo() {
  return (
    <div
      className="relative flex min-h-screen w-full items-center justify-center overflow-hidden bg-background p-10"
      style={{
        backgroundImage:
          "radial-gradient(circle at 20% 20%, oklch(0.7 0.15 331), transparent 60%), radial-gradient(circle at 80% 70%, oklch(0.6 0.15 242), transparent 55%)",
      }}
    >
      <div className="grid grid-cols-1 gap-6 sm:grid-cols-2">
        <FrostTextarea placeholder="Frost — light glass" />
        <TintTextarea placeholder="Tint — info-toned glass" />
        <SmokeTextarea placeholder="Smoke — dark smoky glass" />
        <CrystalTextarea placeholder="Crystal — clear glass" />
        <DepthTextarea placeholder="Depth — deepest glass" />
      </div>
    </div>
  );
}

More by ai 2

View all
  • Ripple Buttons

    Ripple Buttons

    31
  • Styled Toggle Switches

    Styled Toggle Switches

    17
  • Styled Progress Bars

    Styled Progress Bars

    15
  • Styled Badges

    Styled Badges

    10
  • Particle Toggles

    Particle Toggles

    8
  • OTP Pin Input

    OTP Pin Input

    8
  • Combo Kbd

    Combo Kbd

    7
  • Shapes Skeleton

    Shapes Skeleton

    6

More in Forms

View all
  • Premium Auth

    Premium Auth

    524
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    73
  • Form

    Form

    16
  • Login 1

    Login 1

    53
  • Book A Demo 3

    Book A Demo 3

    89
  • Hand-Drawn Checkbox

    Hand-Drawn Checkbox

    48
  • Login Card

    Login Card

    6