Measured entry
magicui-highlighter
text-effectskeuomorphismmotion on file
A client-side React wrapper that draws marker-like highlights, underlines, boxes, circles, strikes, brackets, and related annotations around inline content. It ships as a shadcn registry component but stands alone, using Motion for optional in-view triggering and Rough Notation for drawing, plus ResizeObserver to redraw when layout changes.



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 | OK |
| 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 | 24.8 KB (90.3 KB build, 65.5 KB baseline) |
| Bare mode | OK |
| Provider required | NO |
| Demo used | written from the component source API |
Verdict
A focused, flexible text annotation component that builds and mounts cleanly, works outside a shadcn project, and has no measured accessibility findings. Use it when the rough-drawn animation is part of the design language; plain CSS is the leaner choice for a simple highlight.
Use it if
- You want an animated annotation around short inline text without building the drawing behavior yourself.
- You need several annotation styles behind one small React API.
- Your interface already uses Motion or Rough Notation, making the added dependency cost easier to justify.
- You want the effect to start immediately or once when the text enters the viewport.
Skip it if
- You only need a static background highlight that CSS can provide with no client runtime.
- You are minimizing dependencies and cannot justify Motion plus Rough Notation for a decorative text effect.
- You need built-in reduced-motion handling or user-controlled animation, since the component does not provide it.
- You plan to render many instances, since each visible instance creates an annotation and observes both its element and the document body for resizing.
Install
| Declared dependencies | motion, rough-notation |
|---|---|
| Missing on install | none |
| Bare install | builds and mounts without the shadcn-style helpers |
| Provider | no provider required in the harness |
Add the client component file, install Motion and Rough Notation, and provide equivalents for its utility classes if Tailwind is unavailable. It needs a client-side React runtime with ResizeObserver support; no provider or shadcn setup is required.
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
- fancy-text-along-pathspatial
- Renders
- YES
- A11y
- 0
- Gzip
- 25.7KB
- Bare
- pass
- Prov
- NO
- eldora-blur-in-textspatial
- Renders
- YES
- A11y
- 0
- Gzip
- 58.2KB
- Bare
- pass
- Prov
- NO