Cursor Glow Button

A sophisticated button with a smooth radial gradient glow that follows the cursor on hover. Built for high-performance and a premium tactile feel.

formframer-motionlucide-react

Installation

$npx futureuikit add cursor-glow-button

Import

import { CursorGlowButton } from "@/components/ui/cursor-glow-button"
Layout Variant
Color Theme
Shape
Spacing
Layout & State

Named Keys & Props

Pass these exact named keys as props on <CursorGlowButton />. Click any color pill to copy the prop.

colorDefault is "default"(Black & White)
variantVisual style
"primary""ghost""outline""soft""elevated""gradient""glass"
shapeCorner shape
"default""square""rounded""sharp""cut-two""cut-all"
spacingInner spacing
"default""2x""4x""6x""8x"

Usage Example

A basic implementation example to get you started.

Example Implementation
import { CursorGlowButton } from"@/components/ui/cursor-glow-button";

export default function Example() {
 return <CursorGlowButton>Hover over me!</CursorGlowButton>;
}

Features

Key capabilities and highlights.

Key Capabilities
  • ◆Built with Framer Motion for highly optimized GPU-accelerated glow tracking.
  • ◆Reactive spotlight effect tracking user's cursor position.
  • ◆Minimalist, modern, and clean design.
  • ◆Fully reusable and accepts all standard HTML button props.

Notes

Important implementation details to consider.

Implementation Details
  • ◆Install: Run'npx futureuikit add cursor-glow-button'.
  • ◆Import:'import { CursorGlowButton } from "@/components/ui/cursor-glow-button";'
  • ◆Customization: Adjust the'glowColor','glowSize', and'glowOpacity'props to match your theme.