import './styles.scss' import { BubbleMenu, EditorContent, FloatingMenu, useEditor, } from '@tiptap/react' import StarterKit from '@tiptap/starter-kit' import React from 'react' export default () => { const editor = useEditor({ extensions: [ StarterKit, ], content: `

Try to select this text to see what we call the bubble menu.

Neat, isn’t it? Add an empty paragraph to see the floating menu.

`, }) return ( <> {editor && } {editor && } ) }