Skip to main content
The V2 sidebar is a fully primitive-based implementation. Import VeltCommentsSidebarV2 directly to use it.
import {
  VeltProvider,
  VeltCommentsSidebarV2,
  VeltSidebarButton,
  VeltCommentTool
} from '@veltdev/react';

export default function App() {
  return (
    <VeltProvider apiKey="API_KEY">
      <VeltComments />
      <VeltCommentsSidebarV2 />
      <div className="toolbar">
        <VeltCommentTool />
        <VeltSidebarButton />
      </div>
    </VeltProvider>
  );
}
For V2 props reference, see VeltCommentsSidebarV2Props. For V2 wireframe customization, see Comment Sidebar V2 UI Customization.