smrt
Open the smrt source on GitHub Switch to dark color scheme
← All UI components

Svelte · Command Palette

CommandPaletteDialog

The palette itself: a modal with a search box and a grouped result list, driven by a CommandPaletteController.

Public export

typescript
import { CommandPaletteDialog } from '@happyvertical/smrt-svelte/command-palette';
Import path
@happyvertical/smrt-svelte/command-palette
Props
4
Props described
4 of 4
Bindable state
0
Callback events
0
Verified release
0.62.10

Props

NameTypeRequiredDescription
paletteCommandPaletteControllerNoThe palette to drive; default: the one on context.
hotkeysreadonly string[] | falseNoShortcuts that toggle the palette, e.g. `['Mod+K', '/']`. `false` installs none (open it from your own control).
labelstringNoAccessible name of the dialog.
placeholderstringNoSearch box placeholder.

Bindable state

This component has no bindable public state.

Callback events

This component declares no callback event props.

Examples and explanation