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.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of magicui-highlighter at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of magicui-highlighter at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of magicui-highlighter 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-highlighter
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal24.8 KB (90.3 KB build, 65.5 KB baseline)
Bare modeOK
Provider requiredNO
Demo usedwritten 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

Installation record for magicui-highlighter
Declared dependenciesmotion, rough-notation
Missing on installnone
Bare installbuilds and mounts without the shadcn-style helpers
Providerno 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.

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.