- React / Next.js
- Other Frameworks
Import the VeltCommentPin component and the useCommentAnnotations() hook.
Import the
VeltCommentPin component and the useCommentAnnotations() hook.Add custom metadata when comment is added
Use the
onCommentAdd method to add custom metadata to a comment when a new comment is being added.This metadata can be used later to set the position of the Comment Pin.
You need to set the mandatory commentType: 'manual' property to the metadata object.Retrieve all Comment Annotations
Retrieve all
Comment Annotations using the useCommentAnnotations() hook.To learn more about the useCommentAnnotations() hook, read here.
