Hover Glare Card

A premium card component with a sweeping diagonal CSS glare effect on hover. Includes multiple visual variants and luminous glow states.

layoutNew Releaseclass-variance-authorityframer-motionlucide-react

Installation

$npx futureuikit add hover-glare-card

Import

import { HoverGlareCardRoot } from "@/components/ui/hover-glare-card"
Layout Variant
Color Theme
Style
Glow
Shape
Spacing

Named Keys & Props

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

colorDefault is "default"(Black & White)
variantVisual style
"default""glass""solid""ghost"
shapeCorner shape
"default""square""rounded""sharp"
spacingInner spacing
"default""2x""4x""6x""8x"
sizeComponent size
"sm""md""lg"

Usage Example

A basic implementation example to get you started.

Example Implementation
import { HoverGlareCard } from"@/components/ui/hover-glare-card";

export default function Example() {
 return (
 <HoverGlareCard variant="glass"glow="primary"className="p-6">
 <h3 className="text-xl font-bold text-white mb-2">Premium Card</h3>
 <p className="text-muted-foreground">Hover to see the glare effect.</p>
 </HoverGlareCard>
 );
}

Features

Key capabilities and highlights.

Key Capabilities
  • ◆Pure CSS-driven diagonal glare effect for maximum performance.
  • ◆Supports Default, Glass, Solid, and Ghost variants.
  • ◆Built-in luminous glow states for interactive feedback.
  • ◆Clean, minimalist aesthetic suitable for modern dashboards.

Notes

Important implementation details to consider.

Implementation Details
  • ◆Install: Run'npx futureuikit add hover-glare-card'.
  • ◆Variants: Choose between'default','glass','solid', or'ghost'.
  • ◆Glow: Add'glow="primary"','glow="secondary"', or'glow="white"'for ambient shadows.
  • ◆Glare Opacity: Adjust the intensity of the diagonal glare via the'glareOpacity'prop.