A reviewer's pen that draws itself onto your text as it scrolls into view: wobbly circles, double underlines, boxes and strike-throughs, then arrows that curve from a handwritten note to the words it means.
akaannotation·hand drawn·scribble
Run this in any project set up for the shadcn CLI. It copies the Margin Notes source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/margin-notes.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { MarginNotes } from "@/components/margin-notes";
export default function Page() {
return <MarginNotes />;
}A free React motion component in the Text collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Margin Notes source. Everything is optional unless it says required. It also accepts ComponentProps<"div">.
| Prop | Type | Default |
|---|---|---|
| tone | MarkTone | "red" |
| once | boolean | true |
| strokeWidth | number | 1.8 |