Skip to content
Premium & Brand

Spinning Text

Server Component

A phrase laid out around a slowly rotating circle.

Import

tsx
import { SpinningText } from "@cronus-ui/ui";
bash
npx cronus-ui add spinning-text

Examples

.cronus

The same component declared in Cronus. Emitted at build time from the audit fixtures — the kernel renders it as HTML with no React.

PortedParity: MatchGeometry 1/1Pixel diff 0 pxLogic 1/1Parity scoreboard
default.cronus
app "audit-fixtures" {
  port 5176
}

style {
  preset aurora
  theme dark
}

component SpinningTextDefault layout:inline style:spinning-text {
  label "SPIN"
}

page "/audit/spinning-text/default" type:custom {
  use SpinningTextDefault
}

API Reference

Generated from the component's exported types.

SpinningTextProps

Extends Omit<HTMLAttributes<HTMLDivElement>, "children">

Skip SpinningTextProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>—Ref forwarded to the underlying DOM node.
children*
string—The phrase laid out around the circle.
radius
number48Radius of the circle, in pixels.
duration
number16Seconds for one full revolution.
reverse
booleanfalseSpin counter-clockwise.
className
string—Additional class names merged onto the root.
id
string—DOM id of the root element.