Skip to content
Cards

SpotlightCard

A soft light follows the pointer across the card and lights its border on the way.

Download
  • React
  • Tailwind CSS v4

Props

NameTypeDefaultWhat it does
childrenReactNode—Card content.
colorstring"#34f5c5"Colour of the light. Any CSS colour.
sizenumber240Size of the light on the border, in pixels.
backgroundstring"#0a1714"Card fill.
borderstring"#1a2a27"Border colour where the light is not.
classNamestring""Size and placement of the card.