Skip to main content
The Comment Text component attaches an existing comment to a specific piece of text in your own markup. Put any text inside it and give it an annotation id: it highlights that text and attaches the comment to it. Use it when the text you want to comment on lives in your own components and you already know which annotation belongs to it, for example when rendering comments in a rich-text editor. For selection-driven commenting where the user picks the text, use text comments instead.

Setup

Wrap the text and pass either annotationId or multiThreadAnnotationId.

Props

This component renders the velt-comment-text element. It is distinct from VeltTextComment, which is the selection toolbar used by text comments.