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.json2. Use it
Every prop is optionalapp/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
- 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.
- Behind it, three large blurred circles (pink, sky blue, amber) drift slowly on a deep indigo panel.
- 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.



