Rough-notation powered text annotations — highlight, underline, box, circle, strike-through, and more, with optional scroll-triggered activation.
Installation
Usage
Examples
Underline
Box
Circle
Scroll-triggered
Pass isView to delay the annotation until the element scrolls into view.
API Reference
TextHighlighter
| Prop | Type | Default |
|---|---|---|
children | React.ReactNode | - |
action? | "highlight" | "underline" | "box" | "circle" | "strike-through" | "crossed-off" | "bracket" | "highlight" |
color? | string | "#ffd1dc" |
strokeWidth? | number | 1.5 |
animationDuration? | number | 600 |
iterations? | number | 2 |
padding? | number | 2 |
multiline? | boolean | true |
isView? | boolean | false |
active? | boolean | true |