Skip to content

Commit 4dc80ce

Browse files
docs: Use correct defaultItems in the React Slash Menu Example (#179)
* use correct defaults * Small formatting fix --------- Co-authored-by: Matthew Lipski <[email protected]>
1 parent e4cf413 commit 4dc80ce

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/website/docs/docs/slash-menu.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,15 @@ BlockNote comes with a variety of built-in Slash Menu items, which are used to c
4444
If you want to change, remove & reorder the default items , you first import and copy them to a new array. From there, you can edit the array how you like, then pass it to `useBlockNote`:
4545

4646
```typescript
47-
import { defaultSlashMenuItems } from "@blocknote/core";
48-
import { BlockNoteView, useBlockNote } from "@blocknote/react";
47+
import {
48+
BlockNoteView,
49+
defaultReactSlashMenuItems,
50+
useBlockNote
51+
} from "@blocknote/react";
4952
import "@blocknote/core/style.css";
5053

5154
function App() {
52-
const newSlashMenuItems: ReactSlashMenuItem[] = defaultSlashMenuItems;
55+
const newSlashMenuItems: ReactSlashMenuItem[] = defaultReactSlashMenuItems;
5356

5457
// Edit newSlashMenuItems
5558
...

0 commit comments

Comments
 (0)