Vanilla Breeze

comment-wc

Collaborative comment action for selection-menu. Bridges to review-surface for threaded, shareable comments.

Overview

The <comment-wc> component provides collaborative commenting inside <selection-menu>. It bridges to <review-surface> for threaded, shareable comments — creating a pin at the selection's position.

If no <review-surface> is available, the button appears dimmed with a tooltip explaining comments aren't enabled.

For private reader notes (not shared), use <note-wc> instead.

Usage

Annotation Layers

ComponentActorPersistencePurpose
<note-wc>ReaderlocalStoragePrivate marginalia
<comment-wc>CollaboratorBackend (via review-surface)Shared threaded comments
<foot-note>AuthorStatic HTMLStructural footnotes

Events

EventDetailDescription
comment-wc:created{ text, x, y }Pin created on review-surface

Accessibility

  • Button has aria-label="Add comment" (or "Comments not available" when disabled)
  • Disabled state uses title tooltip explaining how to enable

Related