Five pads
Yellow, green, orange, pink and blue, each turned by its own seeded angle. The first word says what the note is.
A square of colored paper with a gum band, turned a little more than a page. Five pads, any size, written in marker. It can curl a corner, hang from a pin or a strip of tape, and grow a tick box that is ticked with a felt pen.
npx shadcn@latest add @wobko/sticky-noteFirst time here? Add the registry to components.json first. How to install
Yellow, green, orange, pink and blue, each turned by its own seeded angle. The first word says what the note is.
`curl` lifts the bottom-right corner; `fastener` and `tape` hold a note up. Any size works: the text wraps and the sheet follows.
Pass `done` and the note gets a pencil tick box. Add `onDoneChange` and the box can be pressed: the tick is written with a felt pen and the text struck through. A note that loads done just shows it.
A real board: notes you tick off as the week goes, laid on a card. Each note is a labeled group with its own checkbox; the tick is written when you press it.
A Paper on a sticky stock: 11 rem wide and at least 10 rem tall by default, padded under the gum band, set in the script font. Its sheet is CSS, so it resizes freely and a wall of them draws no SVG.
| Prop | Type | Default | Description |
|---|---|---|---|
| color | "yellow" | "green" | "orange" | "pink" | "blue" | "yellow" | Which pad it came off. |
| done | boolean | - | Passing it adds a pencil tick box in the top corner (mirrored in RTL). `true` writes the tick with a felt pen and strikes the content; a note that loads done does not replay the tick. Leave it out for a plain note. |
| onDoneChange | (done: boolean) => void | - | Makes the tick box a real control: a `role="checkbox"` button (32 px, over the drawn box) that asks for the opposite of `done` on click or Space. `done` stays yours (controlled). Without it the box only shows the state. |
| doneLabel | string | "Done" | What a screen reader says for a done note (visually hidden text before the content), and the name of the tick box when it is a control: make it say which note (`Design: done`) when a board has several. |
| curl | boolean | false | Lift the bottom-right corner (draws the sheet as SVG: use it for a few, not a hundred). |
| fastener / tape / tapeKind | Paper props | - | Hang it from a push-pin, a paper clip or a strip of tape. |
| tilt / seed / shadow / edge | Paper props | - | Stickies turn up to 1.6 degrees; seed pins the hand. A torn or deckled edge works too. |
The files the CLI copies into your project.
Loading the source