Skip to main content
1

Import Comment components

Import the VeltProvider, VeltComments, and VeltInlineCommentsSection component.
2

Add VeltComments component

  • Add the VeltComments component to the root of your app where your VeltProvider is.
  • This component is required to render comments in your app.
3

Add container to hold Inline Comments component

  • Create an element to hold your Inline Comments component, such as a div or section.
  • Add a unique element id to it.
4

Add VeltInlineCommentsSection component

  • Add VeltInlineCommentsSection component inside your container.
  • Add targetElementId property to the Velt Inline Comments component. This needs to match the id you set to the container. This binds the Inline Comments component with the desired container.
5

(Optional) Make it single threaded or multithreaded

  • Default: true
  • By default inline comment section is multithreaded.
  • You can make it single threaded by setting multiThread attribute to false.
6

(Optional) Customize placeholder text

Customize the placeholder text for comment, reply, and composer input fields.
To customize placeholder text shown when editing an existing comment or reply, use editPlaceholder, editCommentPlaceholder, and editReplyPlaceholder. See VeltInlineCommentsSectionProps for details.
7

(Optional) Enable message truncation

  • Default: false
  • Truncate long messages in the list, showing a Show more toggle after the specified number of lines.
  • Use messageTruncationLines to control the cutoff (default: 4).