Highlight Sweep

listened to
About this component

Highlight Sweep

An inline phrase that gets a soft highlight swept in behind it from the left when it scrolls into view, like a marker drawn across the words, without the text moving.

Usage

The import and the props worth knowing about, in one place.

import { Text16 } from "@/components/beste/component/text16";

<h2 className="font-serif text-5xl">
  A practice where you are <Text16 text="listened to" />, all the way through.
</h2>

<Text16 text="on purpose" highlightClassName="bg-primary/20" delay={0.6} />

Props

Read from the component's own type, so this cannot drift from what it accepts.

PropTypeDefaultDescription
text*string—The phrase to highlight; render it inline inside a heading or a sentence
trigger"view" | "mount"—
delaynumber—
durationnumber—
highlightClassNamestring—The highlight surface, e.g. "bg-muted" (default) or "bg-primary/20"
classNamestring—

More Text components

View all Text

Progressrarelyfeelslikeprogresswhileitishappening.Sometimesitisshowingup.

listened to the end

The fog lifts a little later each morning.