15 lines
269 B
TypeScript
15 lines
269 B
TypeScript
![]() |
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>
|
||
|
)
|
||
|
}
|