Underline Draw

listened to the end
About this component

Underline Draw

An inline phrase whose hairline underline draws itself in from the left when it scrolls into view. Drop it inside a heading or a sentence to mark the words that matter.

Usage

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

import { Text8 } from "@/components/beste/component/text8";

<h2 className="font-serif text-5xl">
  A practice where you are <Text8 text="listened to the end" />.
</h2>

<Text8
  text="in the room or online"
  offset={0.25}            // gap under the text, in em
  thickness={2}            // line thickness in px
  lineClassName="bg-primary"
  delay={0.5}
/>

Playground

Turn the props on the right; the snippet under them is what you would write to get what you see.

listened to the end
Usage
import { Text8 } from "@/components/beste/component/text8";

<Text8
  text="listened to the end"
  className="font-serif text-2xl leading-[1.1] tracking-[-0.02em] text-foreground md:text-3xl"
/>

Props

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

PropTypeDefaultDescription
text*stringThe phrase to underline; render it inline inside a heading or a sentence
trigger"view" | "mount"
delaynumberSeconds before the line starts drawing
durationnumberSeconds the line takes to draw
offsetnumberGap between the text and the line, in em (default 0.18)
thicknessnumberLine thickness in pixels (default 1)
lineClassNamestringLine colour, e.g. "bg-primary" (defaults to the text colour)
classNamestring

More Text components

View all Text

Notheard.

Strike and Replace

A sentence that corrects itself: a line is drawn through the old word from left to right, and the better word settles in beside it out of a soft blur.

listened to

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.

Nothing changesall at once.

Line Reveal

Lines of text that rise into view out of their own clipped rows, one after another, the way a heading is unmasked line by line.

Running Line

A single line of text that runs across its container without end, fading at both edges and pausing under the pointer. Small caps for announcements, tracked serif for statements.

A

Circle Text

A line of text set around a circle that turns slowly, with room in the middle for an initial, an icon or a short word. A seal for corners, footers and hero edges.

Progressrarelyfeelslikeprogresswhileitishappening.Sometimesitisshowingup.

Scroll Highlight

A passage whose words brighten one after another in reading order as it scrolls through the viewport, and dim again on the way back, like a finger following the line.