Kinetik UI

Word Rotator

.md

A line with one word that keeps changing, rolling out and in letter by letter while its gap springs to fit.

v1.0.0Live on webreact-native-reanimatedreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add word-rotator

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/word-rotator.json

Install manually

  1. Install dependencies
    npx expo install react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/word-rotator.tsx
    View source files

Usage

import { WordRotator } from '@/components/kinetik/word-rotator';

<WordRotator
  before="Interfaces that feel"
  words={['alive.', 'effortless.', 'yours.']}
  align="center"
/>;

style sets the type for the whole line; wordStyle is laid on top for the rotating word, which is azure by default.

When to use

  • A hero line that says one thing several ways: what an app is for, who it is for.
  • Short, punchy words, three to six of them.

When not to use

  • Words people need to act on. Anything that changes on its own is easy to miss.
  • Long phrases. Use Typewriter, which reads better for whole sentences.

Notes

  • Every word is measured once, off screen, so the gap springs to the right width before the letters arrive.
  • Pass paused while the line is off screen.
  • Screen readers hear the line once with every word, not an announcement on every change.
  • With reduced motion the words crossfade in place.

Props

WordRotatorProps

PropTypeDefaultDescription
wordsrequiredreadonly string[]—The words that take turns, e.g. ['alive', 'effortless', 'yours'].
beforestring—Fixed text before the rotating word.
afterstring—Fixed text after the rotating word.
intervalnumber2400Time each word stays, in ms. Defaults to 2400.
staggernumber24Delay between letters as a word rolls in, in ms. Defaults to 24.
pausedbooleanfalseHold on the current word, e.g. while off screen.
align'left' | 'center''left'Line alignment. Defaults to `left`.
styleStyleProp<TextStyle>—Style for all of the text.
wordStyleStyleProp<TextStyle>—Style for the rotating word, on top of `style`. Defaults to the theme azure.
containerStyleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
One clock drives every letter on the UI thread; the width is one spring. Words are measured once, off screen.
Measured

Pixel 9 emulator, API 35, release build · interaction median 0.85× the system Settings app on the same emulator (indicative only) · keeps drawing at rest · 164 MB app memory. Animates by design while words rotate; pass paused off-screen.

Real-device measurement pending.

Accessibility

Reduced motion
Words crossfade in place; the gap still resizes.
Screen readers
Reads the whole line once, with every word in turn, instead of announcing each change.
Touch target
Not interactive.

Source files

components/kinetik/word-rotator.tsx is in the Code tab of the preview above.