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
- [Spoiler Text
Inline text hidden under drifting specks, like a chat spoiler. A click blows the specks away from the point you touched.](/content/docs/texts/spoiler-text/index.html) - [Shadow Text
A headline that works as a sundial. Each letter casts a long, soft shadow set by the reader's clock, and bringing the pointer close turns it into a lamp.](/content/docs/texts/shadow-text/index.html)