Orbit Text

Text around a slowly turning circle, the classic badge.

no dependenciesMIT · free
Scroll down • Scroll down •
Available for work ✦ Available for work ✦

Installation

npx shadcn@latest add https://ombakui.com/r/orbit-text.json

Usage

import { OrbitText } from "@/components/orbit-text";

<OrbitText text="Scroll down • Scroll down • ">
  <ArrowDown />
</OrbitText>

Props

PropTypeDefaultDescription
text*string–Text placed around the circle. A trailing separator like " • " makes the loop seamless.
sizenumber160Diameter in px.
durationnumber14Seconds per full turn; negative spins the other way.
childrenReactNode–Something in the middle, e.g. an icon or logo.
pauseOnHoverbooleantruePause while hovered.
classNamestring–