Ballmac UI home

Spotlight Card

A card whose surface and border pick up a soft glow that follows the pointer, driven by CSS variables with no re-render per move. Keyboard focus shows a steady glow.

Latency budgets

Set a p95 target per route and get a warning in review when a change would push it over.

p95 · 180 ms target

Installation

$ pnpm dlx shadcn@latest add @ballmac/spotlight-card

Usage

import { SpotlightCard } from "@/components/ballmac/spotlight-card"

The full example is in the Code tab above.

Examples

Feature grid

Scoped API keys

Grant read or write per project, rotate without downtime.

Learn more

Preview environments

Every pull request gets its own URL and database branch.

Learn more

Audit log

Who changed what and when, exportable as CSV.

Learn more

API reference

PropTypeDefault
size

Radius of the glow in pixels.

number320

Also accepts the standard attributes of its root element.

Use with AI

A drop-in card surface (rounded-xl, border, bg-card, p-6) with a pointer-following glow in the --ring color. Put any content inside; if the card contains a link or button, focusing it lights the card. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Spotlight Card (@ballmac/spotlight-card) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Feature grids on landing pages
  • Pricing or plan cards that should respond to hover
  • Clickable tiles in a dashboard or settings index

Not for

  • Dense data tables or long lists of cards (the effect loses meaning when everything glows)
  • Plain content containers with no interaction (use card)

Registry JSON: https://ui.ballmac.com/r/spotlight-card.json

Credits

Free to use in personal and commercial projects.

Registry
shadcn/utils