Back to UI Components
Components

Highlighter

A text highlight component that renders a hand-drawn marker stroke behind selected words, used to emphasize key phrases in articles or notes.

Highlighter is a real, MIT-licensed React + Tailwind UI component from the open-source Magic UI library. Run the install command above with the shadcn CLI and it drops the component's actual source straight into your project.

It depends on motion, rough-notation, so make sure those are installed too.

The summary, category and setup steps on this page are written by VintuxAI.

CategoryComponents
LibraryMagic UI
Dependenciesmotion, rough-notation
npx shadcn@latest add "https://magicui.design/r/highlighter.json"

How to use it

  1. Run the install command above — the shadcn CLI drops the real component files into your project.
  2. Install the dependencies listed below it, if any.
  3. Import the component and restyle it with your own Tailwind tokens.
Compiled and written by VintuxAI from public sources.
← Back to UI Components