Command Menu
A searchable list of commands and places in a modal dialog, opened with Cmd+K or Ctrl+K.
The snippet an agent gets
CommandMenu.tsx
import { CommandMenu } from '@basiiik/ui';<CommandMenu open={open} onOpenChange={setOpen} groups={[{ label: 'Go to', items: [{ value: 'settings', label: 'Settings' }] }]} />From get_component_snippet, with the required props filled in from the spec. Every snippet is type-checked against the library before it ships.
- Example values were filled in for the required props open, onOpenChange, groups: replace them with your own.
- Values in braces are your own variables, handlers or data, such as const [open, setOpen] = useState(false).
- Results and Empty follow the search; the active option follows the arrow keys and the pointer; open is controlled by the app.
- Compose with: kbd.
- Storybook: Overlays/Command menu.