We recommend that you familiarize yourselves with UI Customization Concepts before attempting to modify any components.

This component is a thin wrapper around the Comment Dialog Composer component.

VeltCommentComposerWireframe

<VeltCommentComposerWireframe>
    <VeltCommentDialogWireframe.Composer />
</VeltCommentComposerWireframe>

VeltCommentDialogWireframe.Composer

You can find the wireframe for the Comment Composer here.

Styling

Disable ShadowDOM

  • By default, ShadowDOM is used to ensure that your app’s CSS does not interfere with the styling of the SDK components.
  • Disable the shadow dom to apply your custom CSS to the component.

Default: true

<VeltCommentComposer shadowDom={false} />

Dark Mode

Default: false

<VeltCommentComposer darkMode={true} />

Variants

  • Define variants for the entire Comment Composer component. This will enable you to show different Composer UI in different parts of your app.
  • Alternatively, define a variant for the Comment Dialog component and use it here. This will enable you to show different Comment Dialog UI on the DOM vs here.
  • Learn more about how to define and use variants here.
<VeltCommentComposer 
  variant="component-variant" 
  dialogVariant="dialog-variant"
/>