Skip to content
This repository was archived by the owner on Jul 22, 2026. It is now read-only.

Repository files navigation

Comments for Blocknote

Caution

This repository has been archived. It is no longer actively maintained or updated.

Development has been moved to a new project: [y-comments] 👉 y-comments


Stability Badge

Comments feature for Blocknote.

Demo

A demo is worth a thousand words

Installation

Install via YARN

Get the package

$ yarn add @defensestation/blocknote-comments

Usage

Include module at your application

import{commentStyleSpec,CommentToolbarController,CreateCommentButton,}from"@defensestation/blocknote-comments";

Create schema with comment style spec.

constschema=BlockNoteSchema.create({styleSpecs: {// Adds all default styles.
...defaultStyleSpecs,comment: commentStyleSpec,},});

Add comment button in toolbar.

constCustomToolbar=()=>(<FormattingToolbarControllerformattingToolbar={()=>(<FormattingToolbar><CreateCommentButtonkey={"createCommentButtin"}/></FormattingToolbar>)}/>)

Add comment controller.

<BlockNoteViewformattingToolbar={false}editor={editor}><CustomToolbar/><CommentToolbarController/></BlockNoteView>

About

comments plugin for blocknote

Topics

Resources

Code of conduct

Contributing

Stars

30 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages