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.

This entry is a do-not-use verdict

It is published because it broke, not in spite of it. The run stopped at the mount, and the recorded output is printed further down this page.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of magicui-word-rotate at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of magicui-word-rotate at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of magicui-word-rotate at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

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.

Harness measurements recorded for magicui-word-rotate
BuildOK
MountFAIL
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal71.2 KB (136.7 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten 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

Installation record for magicui-word-rotate
Declared dependenciesmotion, clsx, tailwind-merge
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno 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.

License
MIT
Record published
2026-08-17

Alternatives

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.