webapp/src/components/Editor/EditorBubbleMenu.tsx

15 lines
269 B
TypeScript
Raw Normal View History

2023-03-08 16:35:13 +00:00
import type { Editor } from '@tiptap/core'
type BubbleMenuProps = {
editor: Editor
ref: (el: HTMLDivElement) => void
}
export const EditorBubbleMenu = (props: BubbleMenuProps) => {
return (
<div ref={props.ref}>
<button>bold</button>
</div>
)
}