Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions packages/website/docs/docs/slash-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,15 @@ BlockNote comes with a variety of built-in Slash Menu items, which are used to c
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`:

```typescript
import { defaultSlashMenuItems } from "@blocknote/core";
import { BlockNoteView, useBlockNote } from "@blocknote/react";
import {
BlockNoteView,
defaultReactSlashMenuItems,
useBlockNote
} from "@blocknote/react";
import "@blocknote/core/style.css";

function App() {
const newSlashMenuItems: ReactSlashMenuItem[] = defaultSlashMenuItems;
const newSlashMenuItems: ReactSlashMenuItem[] = defaultReactSlashMenuItems;

// Edit newSlashMenuItems
...
Expand Down