Spinning Text
Server ComponentA 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.
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">
| Prop | Type | Default | Description |
|---|---|---|---|
ref | Ref<HTMLDivElement> | — | Ref forwarded to the underlying DOM node. |
children* | string | — | The phrase laid out around the circle. |
radius | number | 48 | Radius of the circle, in pixels. |
duration | number | 16 | Seconds for one full revolution. |
reverse | boolean | false | Spin counter-clockwise. |
className | string | — | Additional class names merged onto the root. |
id | string | — | DOM id of the root element. |