Component

Gradient Border Input

Input fields with gradient border effects for visual impact

  • Component
  • Tailwind
  • MIT

Preview

Live component

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

Install

Add to your project

terminal
npx devsnips add Tailwind/Components/Input/gradient-border
registry path: Tailwind/Components/Input/gradient-border

Source

Implementation

code.html
<!-- Gradient Border - Blue Purple -->
<div class="relative p-[2px] rounded-xl bg-gradient-to-r from-blue-500 via-purple-500 to-pink-500">
  <input type="text" placeholder="Enter your name" class="w-full px-4 py-3 bg-white rounded-lg focus:outline-none" />
</div>

<!-- Gradient Border - Cyan Blue -->
<div class="relative p-[2px] mt-4 rounded-xl bg-gradient-to-r from-cyan-400 to-blue-500">
  <input type="email" placeholder="Enter your email" class="w-full px-4 py-3 bg-white rounded-lg focus:outline-none" />
</div>

<!-- Gradient Border - Warm -->
<div class="relative p-[2px] mt-4 rounded-2xl bg-gradient-to-r from-orange-500 via-rose-500 to-purple-500">
  <input type="text" placeholder="Create something amazing" class="w-full px-5 py-4 bg-gray-900 text-white placeholder-gray-500 rounded-2xl focus:outline-none" />
</div>

<!-- Gradient Border - Dark Background -->
<div class="relative p-[2px] mt-4 rounded-lg bg-gradient-to-r from-violet-600 via-fuchsia-500 to-pink-500">
  <div class="px-4 py-3 bg-slate-900 rounded-lg">
    <input type="text" value="Premium Member" class="w-full bg-transparent text-white focus:outline-none" />
  </div>
</div>
21 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/input/gradient-border

Continue browsing

View all