1. onCommentClick Callback

  • When the user clicks on the comment thread, you can listen to it using this method.
  • Example: Use this to fetch the context and make the necessary app state changes to navigate to the comment.
<VeltCommentThread
    annotationId="COMMENT_ANNOTATION_ID"
    onCommentClick={(data) => handleOnCommentClick(data)}
/>

2. Pass Comment Annotation Object

  • You can pass a Comment Annotation object directly to render the comment thread
  • When using annotations from other documents:
    • Comments will be read-only
    • Reactions and recordings will not be rendered
  • This enables creating Kanban boards by fetching comment annotations from multiple documents using our REST APIs
<VeltCommentThread annotation={COMMENT_ANNOTATION_OBJECT} />