44 defaultStyleSpecs ,
55} from "@blocknote/core" ;
66import "@blocknote/core/fonts/inter.css" ;
7+ import { BlockNoteView } from "@blocknote/mantine" ;
8+ import "@blocknote/mantine/style.css" ;
79import {
810 FormattingToolbar ,
911 FormattingToolbarController ,
@@ -13,8 +15,6 @@ import {
1315 useComponentsContext ,
1416 useCreateBlockNote ,
1517} from "@blocknote/react" ;
16- import { BlockNoteView } from "@blocknote/mantine" ;
17- import "@blocknote/mantine/style.css" ;
1818
1919const small = createStyleSpec (
2020 {
@@ -67,7 +67,7 @@ const CustomFormattingToolbar = (props: FormattingToolbarProps) => {
6767
6868 return (
6969 < FormattingToolbar >
70- < Components . Toolbar . Button
70+ < Components . FormattingToolbar . Button
7171 mainTooltip = { "small" }
7272 onClick = { ( ) => {
7373 editor . toggleStyles ( {
@@ -76,8 +76,8 @@ const CustomFormattingToolbar = (props: FormattingToolbarProps) => {
7676 } }
7777 isSelected = { activeStyles . small } >
7878 Small
79- </ Components . Toolbar . Button >
80- < Components . Toolbar . Button
79+ </ Components . FormattingToolbar . Button >
80+ < Components . FormattingToolbar . Button
8181 mainTooltip = { "font size" }
8282 onClick = { ( ) => {
8383 editor . toggleStyles ( {
@@ -86,7 +86,7 @@ const CustomFormattingToolbar = (props: FormattingToolbarProps) => {
8686 } }
8787 isSelected = { ! ! activeStyles . fontSize } >
8888 Font size
89- </ Components . Toolbar . Button >
89+ </ Components . FormattingToolbar . Button >
9090 </ FormattingToolbar >
9191 ) ;
9292} ;
0 commit comments