Component packs › Toolbelt › Slash Menu

Slash Menu

Type "/" and a block menu opens; the highlight springs between rows and past ones the filter removes.

Slash Menu is a command menu from Toolbelt, a component pack with 6 toolbar components: Toolbars, menus and tab bars with one highlight that springs from tool to tool. Price: $2 for the whole pack.

Built with: filter as you type, combobox roles, blocks drop into the page.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Slash Menu props

PropTypeDefaultDescription
blocksSlashBlock[]
darkbooleanfollows the pageForce the dark (true) or light (false) look. Default: follows the page.
onInsert(block: string) => void
autoplaynumber | falseShowcase mode: opens the menu and inserts a block every N ms while visible.

Methods on the ref

Use it in React

import SlashMenu from './SlashMenu';

<SlashMenu />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Toolbelt

Good for: Menus and popovers.