Skip to content
caliper ui pro docs

Comment pins

Comments pinned to a point on the content: place a pin by clicking or with the keyboard, nudge it with the arrows, discuss in a thread beside it, resolve it, and find every pin in a numbered list.

Pro

When to use

  • Design review, document review and QA on screenshots.
  • Anywhere feedback belongs to a place, not a line.

When not to use

  • Comments on text ranges; use the comment thread.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/comment-pins

Adds its 9 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

CommentPins

5 props
PropTypeDefault
threads *readonly PinThread[]—
onThreadsChange *(threads: PinThread[]) => void—
currentUser *ThreadAuthor—
children *ReactNode—
classNamestring—

Keyboard

Escape
Closes or cancels, then returns focus to where it came from.
Enter
Activates the focused control.

Accessibility

It exposes status semantics, with aria-pressed, aria-hidden, aria-label, aria-expanded and aria-labelledby kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/comment-pins.md

The index of every part is at /llms.txt.

More in Sharing