Glowy Button
A signature pill-shaped button featuring a premium glass-morph interaction. Initially covered by a full-width colored glass sheet, the layer smoothly shrinks into a compact circle on hover/tap, revealing a hidden icon while emitting a vibrant outer glow.
formframer-motionlucide-react
Installation
$npx futureuikit add glowy
Import
import { GlowyButton } from "@/components/ui/glowy-button"
Color Theme
Shape
Spacing / Size
Named Keys & Props
Pass these exact named keys as props on <GlowyButton />. Click any color pill to copy the prop.
colorDefault is "default"(Black & White)customColor="#hex"shapeCorner shape"default""square""rounded""sharp"spacingInner spacing"default""2x""4x""6x""8x"Usage Example
A basic implementation example to get you started.
Example Implementation
import { GlowyButton } from "@/components/ui/glowy-button";
import { Rocket, Zap } from "lucide-react";
export default function Example() {
return (
<div className="flex flex-wrap gap-4">
{/* Named Color Keys */}
<GlowyButton color="default">Launch</GlowyButton>
<GlowyButton color="emerald" icon={Rocket}>Success</GlowyButton>
<GlowyButton color="rose">Delete</GlowyButton>
<GlowyButton color="sky">Info Action</GlowyButton>
<GlowyButton color="amber" icon={Zap}>Warning Action</GlowyButton>
{/* Optional Custom Hex Override */}
<GlowyButton
color="violet"
customColor="#8b5cf6"
customGlowColor="rgba(139, 92, 246, 0.5)"
onClick={() => alert('Custom Glow!')}
>
Violet Glow
</GlowyButton>
</div>
);
}Features
Key capabilities and highlights.
Key Capabilities
- ◆Premium pill-shaped UI with edge-to-edge glass sheet coverage.
- ◆Interactive shrinking glass: the full-width layer collapses into a sleek circle on the right side upon interaction.
- ◆Dynamic icon reveal: the icon scales into view as the glass sheet shrinks.
- ◆Smooth physics-based spring animations for a responsive, modern feel.
- ◆Semantic variant support: Primary, Success, Warning, Danger, Info, and Secondary.
- ◆Integrated with Lucide React for high-quality iconography.
- ◆Full mobile support: animations are optimized for both hover and touch interactions.
Notes
Important implementation details to consider.
Implementation Details
- ◆Install: Run'npx futureuikit add glowy'to add the component and Lucide-React dependencies.
- ◆Import:'import { GlowyButton } from "@/components/ui/glowy-button";'
- ◆Colors: Pass any of the 10 named color keys ('default', 'blue', 'emerald', 'rose', 'amber', 'violet', 'indigo', 'sky', 'slate', 'orange') via 'color'.
- ◆Icons: Pass a Lucide icon component to the'icon'prop (defaults to ArrowRight).
- ◆Custom Override: Optionally pass 'customColor' and 'customGlowColor' for hex/rgba styling.
- ◆Interaction: Perfect for high-impact CTAs that require interactive visual feedback.