Marker Text - React Component | Kokonut UI

Marker Text

Hand-drawn highlights, underlines, circles, boxes and strikes that draw themselves in reading order when the text comes into view.

Installation

Marker Text is a free, open-source React component in the Kokonut UI Texts collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/marker-text.tsx, so the code is yours to change.

Copy Text

npx shadcn@latest add @kokonutui/marker-text

Or add it by hand: install its packages, then copy the source from above into components/kokonutui/marker-text.tsx.

Copy Text

npm install lucide-react

Usage

Copy Text

import MarkerTextDemo from "@/components/kokonutui/marker-text";

export default function Example() {
  return <MarkerTextDemo />;
}

Props

className

string

Extra classes for the root element.

Dependencies

Needs Version Comes from
lucide-react ^0.556.0 npm, installed by the CLI
cn from lib/utils.ts shadcn init
React 19 Your app
Tailwind CSS 4 Your app

No provider, font or global CSS to set up: the file works as soon as it lands.

Additional Text Types