chipchap
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

chipchap

A Chakra-based Tiptap editor.

API design

Configure the editor instance

You configure the editor instance the same way, via Tiptap's useEditor.

Choose which menu to render

Currently only the fixed menu (or no menu) are supported. In the future we'll add support for the bubble menu and floating menus, but you can do that yourself for now.

Style the editor in the Chakra theme

Use the standard Prosemirror classes to target the editor via the Chakra theme.

import { useEditor } from "chipchap";

export const MyComponent = () => {
  const editor = useEditor();
  return <Editor editor={editor} menu="fixed" />;
};

Roadmap

  1. supports tiptap starterkit extensions (bold, italic, strike, code, text, h1, h2, h3, bullet list, ordered list, code block, block quote, horizontal rule)
  2. support fixed menu
  3. support no menu
  4. support every extension in starterkit
  5. add a way to style the editor, ideally through the consumers chakra theme
  6. code and codeblock styling (highlight/lowlight?)
  7. support floating and bubble menus
  8. add support for other simple extensions (link)

Readme

Keywords

none

Package Sidebar

Install

npm i chipchap

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

1.03 MB

Total Files

24

Last publish

Collaborators

  • chasinhues