Skip to content

Canvas Comments

Numbered comment pins on a canvas, a mock or an image. Click a pin to open its card beside it, J and K to step through them, and in comment mode a click drops a new pin.

On this page
Used for
  • Design review
  • Screenshot feedback
  • Whiteboards
  • Image annotation

Examples

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

children
ReactNode
The canvas: an image, a mock, a board. It sets the size.
pins
{ id, x, y, author, body, meta?, resolved? }[]
x and y run 0 to 1 across and down.
active, onActiveChange
string | null
The open pin.
renderActive
(pin) => ReactNode
What the open card shows. Default: the first comment.
adding, onAdd
boolean, (x, y) => void
Comment mode: a click calls onAdd with where it landed.
list
boolean
Defaulttrue
The list of pins beside the canvas, under it when narrow.

Accessibility

  • Each pin is a toggle button named "Comment 1 of 3, Mara Lind".
  • The open card is a dialog with the same name; J, K and Esc work from any pin.
  • The list repeats every pin as a button, in order.

What it handles

  1. 01Places numbered pins at points on a canvas, a mock or an image, by fraction so they hold at any size.
  2. 02Opens the selected pin's card beside it and flips it to the other side so it stays inside the canvas.
  3. 03Steps through pins with J and K, and drops a new pin where the person clicks in comment mode.
  4. 04Lists the pins beside the canvas, or under it on a phone, and draws resolved pins hollow.

States

First render
Pins sit in place; nothing plays
none
Hover or select a pin
Its fill deepens, the selected pin turns ink
120ms ease out
Reduced motion
Colours swap at once
0ms

Works with

When to use

When to use

  • Feedback on a design, a screenshot or a board, pinned to the spot it is about.
  • Design review where people step through every pin in order.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Canvas Comments to my app and wire it to my own data.
  • I need feedback on a design, a screenshot or a board, pinned to the spot it is about. Set that up with the Knowns UI Canvas Comments.
  • Which Canvas Comments props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "canvas-comments" }) and search_docs({ query: "canvas comments" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Canvas Comments, or found something off? We read every message.