Locara
← All components AI affordances

SlashMenu

Notion-style caret-anchored command list. Filters by query, keyboard nav with arrows + Enter, sticky group headers.

Inspired by Notion slash menu, Linear Cmd+K but inline.

Preview

What it looks like.

/sum
SummariseShort summary of the conversation so far ⌘S
SumeriaWikipedia → fetch URL
Sum a columnAggregate a CSV column · uses calc-tool
Usage

Drop it into your app.

import { SlashMenu } from '@locara/components'

<SlashMenu
  open={slash.open}
  anchor={slash.caret}
  query={slash.query}
  items={SLASH_COMMANDS}
  onSelect={(cmd) => applyCommand(cmd)}
  onClose={() => setSlash({ open: false })}
/>

Or copy the source into your repo: locara add slash-menu