Component

Glass Soft Button

Soft glass morphism buttons with blur effect

  • Component
  • Tailwind
  • MIT

Preview

Live component

Interactive preview
Open preview
9:41 100%
devsnips.site/library/tailwind/components/buttons/glass-button/soft/
fluid · no fixed width 100%
No dependencies Production-ready

Install

Add to your project

terminal
npx devsnips add Tailwind/Components/Buttons/glass-button/soft
registry path: Tailwind/Components/Buttons/glass-button/soft

Source

Implementation

code.html
<!-- Glass Button Styles -->
<style>
  .glass-soft {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  .glass-hover:hover {
    background: rgba(255, 255, 255, 0.9);
  }
</style>

<!-- Glass Button - Default -->
<button class="px-6 py-2.5 glass-soft glass-hover text-gray-700 font-medium rounded-lg focus:outline-none focus:ring-2 focus:ring-white/50 transition-all">
  Glass Default
</button>

<!-- Glass Button - Disabled -->
<button class="px-6 py-2.5 glass-soft glass-hover text-gray-700 font-medium rounded-lg focus:outline-none focus:ring-2 focus:ring-white/50 transition-all" disabled>
  Glass Disabled
</button>

<!-- Glass Button - Pill -->
<button class="px-6 py-2.5 glass-soft glass-hover text-gray-700 font-medium rounded-full focus:outline-none focus:ring-2 focus:ring-white/50 transition-all">
  Glass Pill
</button>
27 lines UTF-8 · LF · Spaces: 2
DevSnips AI ready Claude · Cursor · Windsurf

Agent skill & Model Context Protocol

Pass this component straight into your AI workflow. DevSnips exposes each resource as a structured, addressable registry entry, so your agent installs the real files instead of approximating them.

devsnips://components/buttons/glass-button/soft
Prompt instruction
I want to use this DevSnips resource in production:

Page:
https://devsnips.site/library/tailwind/components/buttons/glass-button/soft/

Install: npx devsnips add
Tailwind/Components/Buttons/glass-button/soft

This is the Glass Soft Button — Soft glass morphism buttons with blur effect

Use this DevSnips resource as the starting point for my project.
Adapt it to my project's stack and conventions, fix any issues,
and make it production-ready while preserving its intended design
and behavior.

Paste into ChatGPT, Claude or your agent — it already carries the page URL and the exact install path.

Resource URI
devsnips://components/buttons/glass-button/soft