BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/einui/glass-textarea

Glass Textarea

einui/glass-textarea
FreeComponent

A liquid glass styled textarea with focus glow effects.

Live preview

live · rendered by the registry
Rendered by einui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.eindev.ir/r/glass-textarea.json

Source

registry/liquid-glass/glass-textarea.tsxui.eindev.ir/r/glass-textarea.json
1"use client"
2
3import * as React from "react"
4import { motion } from "framer-motion"
5import { cn } from "@/lib/utils"
6
7export interface GlassTextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
8 glowOnFocus?: boolean
9 label?: string
10 error?: string
11}
12
13const GlassTextarea = React.forwardRef<HTMLTextAreaElement, GlassTextareaProps>(
14 ({ className, glowOnFocus = true, label, error, id, ...props }, ref) => {
15 const textareaId = id || "glass-textarea-id"
16 const errorId = `${textareaId}-error`
17
18 return (
19 <div className="relative w-full">
20 {label && (
21 <motion.label
22 htmlFor={textareaId}
23 className="block text-sm font-medium text-white/80 mb-2"
24 initial={{ opacity: 0, y: -4 }}
25 animate={{ opacity: 1, y: 0 }}
26 transition={{ duration: 0.2 }}
27 >
28 {label}
29 </motion.label>
30 )}
31 <motion.div
32 className="relative group"
33 initial={{ opacity: 0, y: 8 }}
34 animate={{ opacity: 1, y: 0 }}
35 transition={{ type: "spring", visualDuration: 0.3, bounce: 0.2 }}
36 >
37 {glowOnFocus && (
38 <motion.div
39 className="absolute -inset-0.5 rounded-xl bg-linear-to-r from-cyan-500/0 via-blue-500/0 to-purple-500/0 blur-md group-focus-within:from-cyan-500/30 group-focus-within:via-blue-500/30 group-focus-within:to-purple-500/30 transition-all duration-300"
40 aria-hidden="true"
41 />
42 )}
43 <textarea
44 id={textareaId}
45 className={cn(
46 "relative flex min-h-30 w-full rounded-xl px-4 py-3 text-sm",
47 "bg-white/10 backdrop-blur-xl border border-white/20",
48 "text-white placeholder:text-white/40",
49 "shadow-[0_4px_16px_rgba(0,0,0,0.2)]",
50 "transition-all duration-300 resize-none",
51 "focus:outline-none focus:border-white/40 focus:bg-white/15",
52 "focus:ring-2 focus:ring-cyan-400/30 focus:ring-offset-0",
53 "disabled:cursor-not-allowed disabled:opacity-50",
54 error && "border-red-400/50 focus:border-red-400/70 focus:ring-red-400/30",
55 className,
56 )}
57 ref={ref}
58 aria-invalid={error ? "true" : undefined}
59 aria-describedby={error ? errorId : undefined}
60 {...props}
61 />
62 </motion.div>
63 {error && (
64 <motion.p
65// … truncated

What it pulls in

npm packages

  • framer-motion

Files it writes

  • registry/liquid-glass/glass-textarea.tsx

Facts

Registry
einui
Type
registry:component
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

Docs on einui ui.eindev.ir einui/einui on GitHub Raw registry item This item as JSON

More from einui

All 42 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Base Widgetbase-widgeteinuiComponentsFree1 dep
Calendar Widgetscalendar-widgeteinuiComponentsFree1 dep
Clock Widgetsclock-widgeteinuiComponentsFree1 dep
Glass Alert Dialogglass-alert-dialogeinuiComponentsFree1 dep
Glass Avatarglass-avatareinuiComponentsFree1 dep
Glass Badgeglass-badgeeinuiComponentsFree1 dep
Glass Breadcrumbglass-breadcrumbeinuiComponentsFree1 dep
Glass Buttonglass-buttoneinuiComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex