Skip to main content
Version: Next

SpinningText API

import { SpinningText } from '@editora/ui-react';

Props​

PropTypeDescription
accentstring
childrenReact.ReactNode
colorstring
directionSpinningTextDirection
durationnumber | string
easingstring
elevationSpinningTextElevation
fontSizenumber | string
fontWeightnumber | string
letterSpacingnumber | string
orbitColorstring
paddingnumber | string
pausedboolean
pauseOnFocusboolean
pauseOnHoverboolean
radiusnumber | string
repeatnumber | string
separatorstring
sizeSpinningTextSize
speednumber | string
textstring
toneSpinningTextTone
variantSpinningTextVariant

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

SpinningText.Center props​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.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