Browse components
Spotlight Card
A soft light follows the cursor across the card surface.
Installation
npx shadcn@latest add @glint-ui/spotlight-cardFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/spotlight-card.json
Usage
import { SpotlightCard } from "@/components/ui/spotlight-card";
<SpotlightCard>
<h3>Spotlight</h3>
</SpotlightCard>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Card content. |
| spotlightColor | string | "rgba(198, 255, 61, 0.18)" | Light color; use alpha. |
| size | number | 400 | Spotlight diameter in px. |
| className | string | — | Extra classes for the root element. |