graphics

SpotlightCard

A glass card with a spotlight that drifts slowly behind the content (Surface + a frame-driven Glow). The card rises in on the house spring while the spotlight keeps moving — alive, not busy.

$ npx ondajs add spotlight-card

SpotlightCard

A glass card (Surface) with a spotlight (Glow) that drifts slowly behind the content on a frame-driven path. The card rises in on the house spring; the spotlight keeps moving so the surface feels alive without anything competing for attention. Eyebrow + title + body, all token-styled.

Props

PropTypeDefaultNotes
eyebrowstring"FEATURE"Uppercase kicker; empty hides it.
titlestring"Motion identity"Headline (display font).
bodystringsampleSupporting copy; empty hides it.
delaynumber0Frames before entrance.
glowColorstring#D96B82Drifting spotlight color.
widthnumber560Card width.
paddingnumber48Inner padding.
align'left' | 'center''left'Text alignment.
fontFamilystringClash DisplayTitle font.
placementregion or {x,y,anchor}Canvas placement.

Usage

TSX
import { SpotlightCard } from './components/onda/spotlight-card/SpotlightCard';

export const FeatureScene = () => (
  <SpotlightCard eyebrow="FEATURE" title="Motion identity" placement="center" />
);