Cards
CreativeMagnetic Card
Feels like a pane of glass with something behind it. For grids of links and products.
Install
Included with Creative: needs your API key. Initialize and log in once.
npx @galactrex/ui add magnetic-cardUsage
import { MagneticCard } from "@/components/galactrex/magnetic-card";
<MagneticCard href="/apps/beforeedit/">…</MagneticCard>Source
Installs to components/galactrex/magnetic-card.tsx, with the shared motion primitives beside it.
Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Content. |
strength | number | 12 | Largest pull in px. |
href | string | — | Makes the whole card one link. |
className | string | — | Extra classes for the outer element. |
Variants
- Link card. With href.
Accessibility
- A link with a focus ring when it has href.
Motion and reduced motion
- Spring follow through motion values.
- Still on touch, keyboard-only and reduced motion.