A short word whose letters begin scattered and slightly turned, then drift home on a soft spring one after another, like type settling onto a page.
The import and the props worth knowing about, in one place.
import { Text14 } from "@/components/beste/component/text14";
<Text14 as="h1" text="settle" className="font-serif text-9xl" />
<Text14
text="Altair"
spread={1.4} // how far the letters start from home, in em
stagger={0.08}
trigger="mount"
/>Read from the component's own type, so this cannot drift from what it accepts.
| Prop | Type | Default | Description |
|---|---|---|---|
text* | string | — | Short text; its letters start scattered and drift home one by one |
as | "h1" | "h2" | "h3" | "p" | "span" | — | |
trigger | "view" | "mount" | — | |
delay | number | — | |
stagger | number | — | |
spread | number | — | How far the letters start from home, in em (default 0.9) |
className | string | — |