s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Svelte · Command Palette

CommandPalette

No summary has been written for CommandPalette. Everything below is generated from the declaration shipped in 0.57.40 and describes the real contract.

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.57.40

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