ZeroGravity UI

Typographystable

Halo

Circular text

A phrase spread evenly around a full circle that turns slowly around a centre.

Customize

Ringan equal slice of the turn per character
text
2repeat
separator
200 pxsize
Turnone compositor rotation
spin
20 sduration
direction
paused
pauseOnHover

Usage

TSX
import { Halo } from "zerogravity/halo"

<Halo
    text="Scroll to explore"
/>

Generated from the controls above. Only props that differ from their defaults are shown.

Props

12 documented props on Halo
PropertyTypeDefaultDescription
textstring"Scroll to explore"Text.
repeatnumber2Repeat. Range 1 to 6.
separatorstring" • "Separator.
sizenumber200Size. Range 120 to 360 px.
spinbooleantrueSpin.
durationnumber20Seconds per turn. Range 4 to 60 s.
direction"clockwise" | "counterclockwise""clockwise"Direction.
pausedbooleanfalsePaused.
pauseOnHoverbooleanfalsePause on hover.
fontSizenumberfittedpx at full size; fitted to the ring when omitted.
childrenReactNode—Sits in the centre and keeps its own semantics.
respectReducedMotionbooleantrueHold the ring still when the reader prefers reduced motion.

Dependencies

0 external runtime dependencies

Ships with nothing but React.