Skip to main content
Clever Ops

Orbit Caption

A mono micro-caption orbits the headline on an elliptical SVG path, slow as a survey satellite, hover or focus eases the orbit to a halt so the caption can be read.

Preview & code

Loading Orbit Caption preview

Installation

pnpm dlx shadcn@latest add @cleverui/text-orbit-caption

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { TextOrbitCaption } from '@/components/ui/text-orbit-caption'
Exampletsx
import { TextOrbitCaption } from '@/components/ui/text-orbit-caption'

export default function TextOrbitCaptionDemo() {
  return (
    <div className="mx-auto flex min-h-[480px] max-w-3xl items-center justify-center px-2 py-12">
      <TextOrbitCaption
        as="h1"
        title="Northlight Atlas"
        caption="Field survey · 47°36′N · edition 04"
      />
    </div>
  )
}

API reference

TextOrbitCaption accepts the following props.

PropTypeDefaultDescription
title*string
caption*stringorbiting mono micro-label, ≤ 60 chars
as'h1' | 'h2' | 'h3''h2'
durationnumber28seconds per revolution

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Frequently asked questions

How do I install the Orbit Caption component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/text-orbit-caption`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Orbit Caption require?

Orbit Caption has no npm dependencies beyond React and Tailwind CSS itself, so there is nothing extra to install or keep updated.

Can I theme Orbit Caption to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services