Make your AI a shadcn expert

Glass Button

Translucent button with backdrop-blur for frosted-glass aesthetic over rich backgrounds in React, Next.js, shadcn/ui, Tailwind CSS, TypeScript. Built on the base-ui shadcn Button.

Glass Button preview

Scroll to load preview

Frosted glass, the right way. A translucent surface with a backdrop-blur lets whatever's behind it bleed through softly — like looking through a foggy window. The border is a low-alpha contrast line so the edge stays defined. Perfect for buttons sitting over hero images, gradients, or video backgrounds where a solid bg would fight the imagery. Place it on a flat page background and the effect disappears (the blur has nothing to blur) — glass needs something to filter. Built on top of the shadcn Button so every variant and size you already use just works.

Install with AI

If you've connected the shadcn.io MCP server to Claude Code, Cursor, Windsurf, or any MCP-ready AI editor, prompt your agent to install this button for you — no copy-paste, no CLI:

use shadcnio to install the glass-button button into my project

FAQ

Last updated on May 25, 2026

Was this page helpful?

Sign in to leave feedback.