Spotlight Card

A card with a spotlight effect that follows the mouse cursor.

npx arupui add spotlight-card
Preview

Feature One

Hover to see the spotlight effect.

Feature Two

Custom spotlight color.

Usage

spotlight-card.tsx
import { SpotlightCard } from "@/components/blocks/spotlight-card"

<SpotlightCard>
  <h3>Feature</h3>
  <p>Description</p>
</SpotlightCard>

Props

spotlightSize
Type: numberDefault: 350
spotlightColor
Type: stringDefault: rgba(120, 119, 198, 0.15)
Theme Editor

Theme

Radius0.5rem
Letter Spacing0em

Colors

light