SpinningText API
import { SpinningText } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
accent | string | |
children | React.ReactNode | |
color | string | |
direction | SpinningTextDirection | |
duration | number | string | |
easing | string | |
elevation | SpinningTextElevation | |
fontSize | number | string | |
fontWeight | number | string | |
letterSpacing | number | string | |
orbitColor | string | |
padding | number | string | |
paused | boolean | |
pauseOnFocus | boolean | |
pauseOnHover | boolean | |
radius | number | string | |
repeat | number | string | |
separator | string | |
size | SpinningTextSize | |
speed | number | string | |
text | string | |
tone | SpinningTextTone | |
variant | SpinningTextVariant |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
SpinningText.Center props
| Prop | Type | Description |
|---|---|---|
as | keyof JSX.IntrinsicElements | |
children | React.ReactNode |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-spinning-text>
SpinningText renders the ui-spinning-text custom element from @editora/ui-core, which can also be used without React.
Attributes: accent, color, direction, duration, easing, elevation, font-size, font-weight, letter-spacing, orbit-color, padding, pause-on-focus, pause-on-hover, paused, radius, repeat, separator, size, speed, text, tone, variant