Spotlight Card Demo
loomui/spotlight-card-demoFreeExample
Two cards lit by the pointer as it crosses them.
Install it
npx shadcn@latest add https://loomui.design/r/spotlight-card-demo.jsonSource
1import { SpotlightCard } from "@/registry/loomui/spotlight-card"23const CARDS = [4 {5 title: "Copy, do not install",6 body: "The source lands in your repo. Change it, delete half of it, rename it.",7 href: "/docs/installation",8 },9 {10 title: "Motion with a contract",11 body: "Every component ships an off switch and respects reduced motion.",12 href: "/docs/components/weave-text",13 },14]1516export default function SpotlightCardDemo() {17 return (18 <div className="grid w-full max-w-2xl gap-4 sm:grid-cols-2">19 {CARDS.map((card) => (20 <SpotlightCard key={card.title} interactive className="bg-card p-5">21 <h3 className="text-sm font-medium">22 {/* Stretched link: the whole card is the hit target, but the23 accessible name and the href stay on a real anchor. */}24 <a href={card.href} className="after:absolute after:inset-0">25 {card.title}26 </a>27 </h3>28 <p className="text-muted-foreground mt-2 text-sm">{card.body}</p>29 </SpotlightCard>30 ))}31 </div>32 )33}
What it pulls in
Other registry items
Files it writes
More from loomui
All 91 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Aurora Backdrop Demoaurora-backdrop-demo | loomui | Examples | Free | no deps | |
| Bento Grid Demobento-grid-demo | loomui | Examples | Free | no deps | |
| Card Stack Democard-stack-demo | loomui | Examples | Free | no deps | |
| Compare Slider Democompare-slider-demo | loomui | Examples | Free | no deps | |
| Confetti Button Democonfetti-button-demo | loomui | Examples | Free | no deps | |
| Count Up Democount-up-demo | loomui | Examples | Free | no deps | |
| Credit Card Democredit-card-demo | loomui | Examples | Free | no deps | |
| Drawer Demodrawer-demo | loomui | Examples | Free | no deps |
