UI Components
GlassCard
Frosted glass card with configurable blur, border, and padding for layered UIs.
Quick Preview
Glass Card
Frosted glass effect using backdrop-blur
Installation
// Copy fromsrc/components/ui/GlassCard.tsx
Examples
Blur levels
blur-sm
blur-md
blur-lg
blur-xl
Backdrop saturation (new prop)
saturate-none
saturate-low
saturate-normal
saturate-high
Background opacity
xlow
low
medium
high
Border tints
white border
primary border
dark border
Glow effect
โจ
Glowing Card
Primary glow shadow via backdrop filters
Stats card
Revenue
$12,450
โ 12% from last month
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children* | React.ReactNode | - | Card content |
blur | 'sm' | 'md' | 'lg' | 'xl' | 'md' | Backdrop blur amount |
border | boolean | true | Show semi-transparent border |
shadow | boolean | true | Show soft shadow |
padding | 'sm' | 'md' | 'lg' | 'xl' | 'md' | Inner padding size |
rounded | 'md' | 'lg' | 'xl' | '2xl' | 'xl' | Border radius |
className | string | - | Additional CSS classes |