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.dev/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

AI-ready

Available to your agent.

This component is reachable through the DevSnips CLI, MCP server and Skills integrations — one registry, one resource path.

Resource path

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

Continue browsing

View all