Circle Text

A
About this component

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.

Usage

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

import { Text18 } from "@/components/beste/component/text18";

<Text18 text="Altair · Lisbon · since 2019 · " size={180} className="text-sm uppercase tracking-[0.3em]">
  <span className="font-serif text-3xl">A</span>
</Text18>

<Text18
  text="Book a first call · Book a first call · "
  size={140}
  duration={16}            // seconds per turn, 0 holds still
  direction="counter"
/>

Playground

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

A
Usage
import { Text18 } from "@/components/beste/component/text18";

<Text18
  text="Altair · Lisbon · since 2019 · "
  size={180}
  className="text-sm uppercase tracking-[0.3em] text-foreground"
  children={{"type":"span","key":null,"ref":null,"props":{"className":"font-serif text-3xl","children":"A"}}}
/>

Props

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

PropTypeDefaultDescription
text*stringThe line that runs around the circle; end it with a separator so the loop reads cleanly
sizenumberDiameter in pixels
durationnumberSeconds for one full turn; 0 keeps it still
direction"clockwise" | "counter"Turn clockwise (default) or counter-clockwise
childrenReactNodeSomething to sit in the middle, e.g. an icon or a short word
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.

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.

Roomtobreathe.

Turning Word

A sentence whose one word takes turns: each candidate blurs up into place as the last blurs out, on a timer that stops when reduced motion is preferred.

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.

Slow Wave

A word whose letters rise and fall on one slow, continuous swell, each a beat behind the last, like a line of type resting on water. Stays still when reduced motion is preferred.

Typewriter

Text typed out one character at a time behind a thin caret that keeps a slow pulse once the line is finished. The element keeps the whole string as its accessible name.