Measured entry
magicui-word-rotate
text-effectunclassifieddo not usemotion on file
A client-side React text rotator distributed as a shadcn registry component. It cycles through supplied words with enter and exit animation from Motion, uses React state and an interval, and imports the shadcn-style cn class helper through an alias.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | FAIL |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 71.2 KB (136.7 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 20m 13s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/word-rotate.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A focused, customizable rotator that builds, mounts, and stays within its viewport in the prepared harness. It needs a shadcn-style setup as shipped because the bare build cannot resolve the aliased cn helper. Best for an existing Motion stack, not a lightweight standalone effect.
Use it if
- You need a compact rotating word inside a hero line or promotional heading.
- Your app already uses Motion and can absorb another animated client component.
- You want callers to control the word list, timing, classes, and Motion transition props.
Skip it if
- You want a dependency-free text effect, since Motion accounts for meaningful added bundle weight.
- The changing phrase should not be rendered as a heading in your document structure.
- You cannot guarantee a non-empty word list or add validation around the component.
- Your interface should remain static unless you first add an explicit reduced-motion treatment.
Install
| Declared dependencies | motion, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, install Motion, provide a cn-compatible class-merging helper, and replace or configure the aliased utils import. Use it in an environment that supports client-side React, and ensure the words prop is never empty.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/magicuidesign/magicuiAlternatives
Other published entries for the text-effect pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- uilayouts-randomized-text-effectdark-futuristic
- Renders
- YES
- A11y
- 0
- Gzip
- 17.5KB
- Bare
- pass
- Prov
- NO
- uilayouts-randomized-text-unveildark-futuristic
- Renders
- YES
- A11y
- 0
- Gzip
- 17.7KB
- Bare
- pass
- Prov
- NO
- fancy-scramble-indark-futuristic
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- magicui-aurora-textaurora-mesh
- Renders
- YES
- A11y
- 0
- Gzip
- 20.7KB
- Bare
- pass
- Prov
- NO
- magicui-highlighterskeuomorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 24.8KB
- Bare
- pass
- Prov
- NO
- fancy-text-along-pathspatial
- Renders
- YES
- A11y
- 0
- Gzip
- 25.7KB
- Bare
- pass
- Prov
- NO