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

Svelte · Command Palette

CommandPalette

The trigger and the dialog together: the one component a host drops into a shell slot.

Public export

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

Props

NameTypeRequiredDescription
paletteCommandPaletteControllerNoThe palette to use; default: context, else a new one.
providersreadonly PaletteProvider[]NoProviders for the palette created here (ignored when one is supplied).
navigateCommandPaletteOptions['navigate']NoNavigation seam for the palette created here.
hotkeysreadonly string[] | falseNoShortcuts that toggle the palette; `false` for none.
labelstringNoTrigger text and dialog name (default "Search").
placeholderstringNoSearch box placeholder in the dialog.
compactbooleanNoShow only the glyph in the trigger.
hideTriggerbooleanNoRender the dialog and shortcut without a trigger.

Bindable state

This component has no bindable public state.

Callback events

This component declares no callback event props.

Examples and explanation