Bubble Button ​
Bubble button is used in the bubble menu
to change formatting of the selected text.
Usage ​
tsx
import { BubbleButton } from "eddies";
export default function Page() {
return <BubbleButton editor={editor} item={bMenuItem} />;
}
Props ​
Prop | Type | Description |
---|---|---|
editor | EddiesEditor | Editor instance |
item | BubbleMenuItem | Bubble menu item |
contextVariant? | boolean | Based on this variable buttons changes styles |