Back to Component Explorer

Glow Button

buttons

Spatial neon glow button with animated back-layer shadow ambiance.

#button#glow#neon#spatial
Live Interactive Preview

Component Source Code

Select language in the dropdown
GlowButton.tsx
1'use client';
2
3import React from 'react';
4
5export default function GlowButton() {
6 return (
7 <div className="relative group inline-block">
8 <div className="absolute -inset-0.5 rounded-xl bg-gradient-to-r from-blue-500 via-cyan-500 to-teal-500 opacity-75 blur-md transition duration-500 group-hover:opacity-100 group-hover:blur-lg" />
9 <button className="relative flex items-center gap-2 rounded-xl bg-slate-900 dark:bg-slate-950 px-6 sm:px-7 py-2.5 sm:py-3 text-sm font-semibold text-cyan-300 border border-cyan-500/40 shadow-inner">
10 <span>Neon Cyber</span>
11 </button>
12 </div>
13 );
14}

Installation & Integration Guide

Step 1: Tailwind CSS v4 Setup
Tailwind Docs

If you do not have Tailwind installed yet, run this installation command:

Terminal
npm install tailwindcss @tailwindcss/postcss postcss

Then add the Tailwind directive to your main stylesheet (globals.css):

@import "tailwindcss";

Step 2: Install Icon Dependencies

npm install lucide-react react-icons

Step 3: Add Component File

Create a new file in your project at src/components/buttons/GlowButton.tsx and paste the copied code from the source viewer above.

Step 4: Usage Example

ExamplePage.tsx
1import GlowButton from '@/components/buttons/GlowButton';
2
3export default function ExamplePage() {
4 return (
5 <main className="p-8 flex items-center justify-center min-h-screen">
6 <GlowButton />
7 </main>
8 );
9}