Charcoal UI

Echo Text

A heading that follows the pointer with echo copies trailing behind on softer springs and fading down the trail. The further an echo falls behind, the more it blurs.

  • Category: Text
  • Licence: Charcoal UI Pro
  • Built with: React 19, Tailwind CSS 4, Motion
  • Dependencies: motion, clsx, tailwind-merge

Examples

Echo Text

Move the pointer across the word and watch the trail catch up.

API reference

PropTypeDefaultDescription
textstring—
echoesnumber4Trailing copies behind the heading.
lagnumber0.6How far the echoes fall behind, 0 to 1.
colorstring"var(--color-ember)"Echo colour.
reachnumber24How far the heading travels toward the pointer, in px.
classNamestring—

About Echo Text

Echo Text follows the pointer with echo copies trailing on softer springs, each fading and blurring more the further it falls behind. Fast moves leave a ghostly trail.

Echo Text is a text animation for React 19, styled with Tailwind CSS 4 and animated with Motion. It drops into Next.js, Vite, Remix or Astro through the shadcn CLI as a single file you own.

When to use Echo Text

  • Creative hero headlines.
  • Music and nightlife brands.
  • Portfolio intros.
  • Interactive posters.

How it works

Each echo is an aria-hidden copy on a progressively softer spring. echoes, lag and colour are props.

The real text stays in the page for screen readers and search engines; the animated letters are decorative copies marked aria-hidden. With prefers-reduced-motion on, it holds still or settles instantly instead of animating.

Customizing Echo Text

Every prop is documented in the API reference above with its type and default. The ones you will reach for first are listed here.

The Customize panel next to the preview lets you change text, echoes, lag, color live, and the Code tab updates to match, so the snippet you copy already carries your values.

  • text (string).
  • echoes (number, default 4): Trailing copies behind the heading.
  • lag (number, default 0.6): How far the echoes fall behind, 0 to 1.
  • color (string, default "var(--color-ember)"): Echo colour.
  • reach (number, default 24): How far the heading travels toward the pointer, in px.

The example on this page

  • Echo Text: Move the pointer across the word and watch the trail catch up.

Goes well with Echo Text

These text pieces share its tokens and motion language, so they sit together on one page without clashing.

  • Scramble Text: React scramble text: characters cycle through glyphs before locking in
  • Rotating Text: React rotating text that rolls between words letter by letter and resizes smoothly
  • Highlight Text: React highlight text: a marker sweep, hand-drawn underline or scribbled circle on scroll
  • Text Morph: React text morph: shared letters glide to new spots while the rest blur in and out
  • Split Flap: A React split-flap display: every cell flips through the drum to its letter

Install Echo Text

npx shadcn@latest add @charcoal/echo-text

Echo Text is part of Charcoal UI Pro. One seat unlocks all 300 Pro components, 107 landing-page sections and 100 full templates, for every personal and client project, with updates included. Add the @charcoal registry once with your access token, then the command above copies echo-text.tsx into components/ui and installs clsx, tailwind-merge.

You own the file you install: no runtime package, no lock-in, nothing to keep in sync. Change it however your product needs.

See Charcoal UI Pro pricing · Pro setup

Frequently asked questions

How many echoes look best?
Three to five. More echoes make a longer trail but blur together; echoes and lag set the count and how far behind they fall.
How do I install Echo Text?
Echo Text is part of Charcoal UI Pro. Add the @charcoal registry to components.json with your access token, then run npx shadcn@latest add @charcoal/echo-text. It copies echo-text.tsx into components/ui and installs motion, clsx, tailwind-merge.
Is Echo Text free for commercial use?
Echo Text needs a Charcoal UI Pro seat, monthly or a one-time lifetime price. A seat covers unlimited personal and commercial projects, including client work, and every future Pro component.
Does Echo Text work with Next.js?
Yes. It is a client component for React 19 styled with Tailwind CSS 4, so it works in the Next.js App Router and Pages Router, Vite, Remix and Astro.
Can an AI coding agent install Echo Text?
Yes. Connect the Charcoal UI MCP server (https://charcoalui.com/mcp) to Claude Code, Cursor or any MCP client; get_component returns Echo Text's props and get_install_command returns the exact command.

Echo Text as Markdown · llms.txt