Account

Cards

Creative

Glow 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.

Terminal
npx @galactrex/ui add glow-card

Usage

Example
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.

See plans

Props

PropTypeDefaultDescription
childrenReactNode—Content.
colorstring—Any CSS colour; defaults to a theme token.
sizenumber220Light size in px.
hrefstring—Makes the whole card one link.
classNamestring—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.