Component

Glassmorphism Input

Frosted glass effect input fields with backdrop blur

  • Component
  • Tailwind
  • MIT

Preview

Live component

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

Install

Add to your project

terminal
npx devsnips add Tailwind/Components/Input/glassmorphism
registry path: Tailwind/Components/Input/glassmorphism

Source

Implementation

code.html
<!-- Glassmorphism - Light Background -->
<div class="relative p-6 bg-gradient-to-br from-purple-100 via-pink-50 to-blue-100 rounded-2xl">
  <div class="relative">
    <input type="text" placeholder="Search..." class="w-full px-5 py-4 bg-white/40 backdrop-blur-md border border-white/50 rounded-xl text-gray-800 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-white/80 focus:bg-white/60 transition-all" />
  </div>
</div>

<!-- Glassmorphism - Dark Background -->
<div class="relative p-6 mt-4 bg-gradient-to-br from-purple-900 via-indigo-900 to-blue-900 rounded-2xl">
  <div class="relative">
    <input type="text" placeholder="Enter your email" class="w-full px-5 py-4 bg-white/10 backdrop-blur-md border border-white/20 rounded-xl text-white placeholder-white/50 focus:outline-none focus:ring-2 focus:ring-white/40 focus:bg-white/20 transition-all" />
  </div>
</div>

<!-- Glassmorphism - Blur Effect -->
<div class="relative p-6 mt-4 bg-gradient-to-r from-cyan-500 to-blue-500 rounded-2xl">
  <div class="relative">
    <input type="text" placeholder="Subscribe to newsletter" class="w-full px-5 py-4 bg-white/20 backdrop-blur-lg border border-white/30 rounded-xl text-white placeholder-white/60 focus:outline-none focus:ring-2 focus:ring-white/50 focus:bg-white/30 transition-all" />
  </div>
</div>

<!-- Glassmorphism - Card -->
<div class="relative p-6 mt-4 bg-gradient-to-br from-gray-100 to-gray-200 rounded-2xl">
  <div class="space-y-4">
    <input type="text" placeholder="Username" class="w-full px-4 py-3 bg-white/30 backdrop-blur-sm border border-white/40 rounded-xl text-gray-800 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-white/80 transition-all" />
    <input type="password" placeholder="Password" class="w-full px-4 py-3 bg-white/30 backdrop-blur-sm border border-white/40 rounded-xl text-gray-800 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-white/80 transition-all" />
  </div>
</div>
28 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/input/glassmorphism
Prompt instruction
I want to use this DevSnips resource in production:

Page:
https://devsnips.site/library/tailwind/components/input/glassmorphism/

Install: npx devsnips add
Tailwind/Components/Input/glassmorphism

This is the Glassmorphism Input — Frosted glass effect input fields with backdrop blur

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/input/glassmorphism