0.0.38 • Published 11 months ago

@renken/comment-toolbar v0.0.38

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

Comment Toolbar

Just testing out a new package. Don't use it.

Installation

npm install comment-toolbar
# or
yarn add comment-toolbar
# or
pnpm add comment-toolbar

Requirements

This package requires the following peer dependencies:

  • React ^18.0.0
  • React DOM ^18.0.0

Quick Start

import { CommentToolbar } from 'comment-toolbar';
import '@renken/comment-toolbar/dist/index.css';

function App() {
  return (
    <CommentToolbar 
      convexUrl={'string from convex'}
      authUserEmail={'user email--needs to already be in convex users collection'}
      show={true}
    />
  );
}

Props

CommentToolbar

PropTypeRequiredDescription
convexUrlstringYesThe URL of the Convex instance
authUserEmailstringYesThe email of the currently authenticated user
showbooleanNoWhether to show the comment toolbar

License

MIT