Account

Typography

Creative

Wave Text

Continuous and gentle for playful titles and loading lines, or one wave per hover for links.

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add wave-text

Usage

Example
import { WaveText } from "@/components/galactrex/wave-text";

<WaveText text="Loading your world…" />

Source

Installs to components/galactrex/wave-text.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
textstring—The text.
asElementType"span"Element.
mode"always" | "hover""always"Continuous or per hover.
heightnumber0.18Wave height in em.
durationnumber1.6Seconds per wave.
classNamestring—Extra classes for the outer element.

Variants

  • Loading. Loading… that waves.

Accessibility

  • Real text read once.

Motion and reduced motion

  • Transform per letter; pauses offscreen.
  • Reduced motion: still.