bloxa

Spotlight Card

FREE

Card with a cursor-following glow on its surface and border, plus BorderBeam for a travelling edge light.

Installation

Terminal
npx @bloxa/cli add spotlight-card
# or: npx shadcn@latest add @bloxa/spotlight-card

Examples

Feature cards and BorderBeam

Move the cursor over the cards.

Motion-first

Springs and reveals that respect reduced motion.

Fast

No chart or animation bloat — plain SVG and CSS.

Yours

Copy the code into your repo and change anything.

API reference

Every component also accepts the props of the element it renders.

SpotlightCard

PropTypeDefaultDescription
colorstringaccentGlow color.
sizenumber320Glow radius in px.
borderbooleantrueLight the border too.

BorderBeam

Place inside any relative element with a radius.

PropTypeDefaultDescription
durationnumber6Seconds per lap.
color / colorTostring—Beam colors.
widthnumber1.5Thickness in px.