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}
/>

Props

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

PropTypeDefaultDescription
text*string—The phrase to underline; render it inline inside a heading or a sentence
trigger"view" | "mount"—
delaynumber—Seconds before the line starts drawing
durationnumber—Seconds the line takes to draw
offsetnumber—Gap between the text and the line, in em (default 0.18)
thicknessnumber—Line thickness in pixels (default 1)
lineClassNamestring—Line colour, e.g. "bg-primary" (defaults to the text colour)
classNamestring—

More Text components

View all Text

Notheard.

listened to

Nothing changesall at once.