Search

Search components and flows across the catalog

ThatDesignUIOriginalInteractive preview

Frosted glass button

A translucent, blurred glass button with a bright edge and a top highlight, floating over slowly drifting coloured shapes.

Category
Buttons
Platform
Responsive

Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Default state

Use this component

Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.

FreeReact 18+Tailwind v3.4 or v4No extra packages

1. Add it with the shadcn CLI

npx shadcn@latest add https://www.thatdesignui.com/r/glass-button.json

2. Use it

Every prop is optional
app/page.tsx
import GlassButton from "@/components/glass-button";

export default function Page() {
  return <GlassButton />;
}

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. A 56px button rounded 16px with a 15% white fill, an extra-large backdrop blur, a 40% white border and a white inset highlight along the top edge.
  2. Behind it, three large blurred circles (pink, sky blue, amber) drift slowly on a deep indigo panel.
  3. Hover and focus raise the fill to 25%; pressing scales it to 98%.

How it behaves

  • The shapes behind visibly blur through the button.
  • White text keeps enough contrast over every part of the backdrop.
  • Focus shows a bright white ring.
  • The shapes stop drifting under reduced motion.

More from ThatDesignUI

Image gallery lightbox

Image gallery lightbox

ThatDesignUIOriginalMedia component

Notification center

Notification center

ThatDesignUIOriginalNotifications component

Interactive chart card

Interactive chart card

ThatDesignUIOriginalDashboard component

Multi-select combobox

Multi-select combobox

ThatDesignUIOriginalForms component