Cards
CreativeGlow Card
The glow underneath drifts toward the pointer and leaks out from behind the edges.
Install
Included with Creative: needs your API key. Initialize and log in once.
npx @galactrex/ui add glow-cardUsage
import { GlowCard } from "@/components/galactrex/glow-card";
<GlowCard color="hsl(200 90% 60%)">…</GlowCard>Source
Installs to components/galactrex/glow-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. |
color | string | — | Any CSS colour; defaults to a theme token. |
size | number | 220 | Light size in px. |
href | string | — | Makes the whole card one link. |
className | string | — | Extra classes for the outer element. |
Variants
- Brand light. Give it a colour.
Accessibility
- Decorative layers are aria-hidden.
Motion and reduced motion
- Spring-following blurred light.