Magic Card
displayCard with mouse-tracking gradient spotlight effect.
Preview
No preview available
Check the code examples below.
Installation
npm install @launchapp/design-systemImport
import { MagicCard } from "@launchapp/design-system";Examples
Interactive spotlight card
<MagicCard gradientColor="#3b82f6"> <div className="p-8"> <h3 className="text-xl font-bold">Magic Card</h3> <p className="text-muted-foreground mt-2">Hover to see the spotlight effect.</p> </div></MagicCard>Props
| Prop | Type | Default | Description |
|---|---|---|---|
children* | React.ReactNode | — | Card content. |
gradientColor | string | "#262626" | Spotlight gradient color. |