Examples
Command menu
The command palette rebuilt honestly: a dialog hands focus to a combobox whose floating filtered list opens under the input rather than as an inline command list.
Preview
Go to dashboard
Go to deployments
Go to billing
Create new project
Invite a teammate
Rotate API key
Toggle dark mode
Open documentation
Contact support
HTML
<bs:bsui-stack direction="row" gap="2" align="center">
<bs:bsui-dialog>
<bs:bsui-dialog-trigger trigger_label="Search documentation" trigger_variant="outline" />
<bs:bsui-dialog-backdrop />
<bs:bsui-dialog-popup>
<bs:bsui-dialog-content>
<bs:bsui-combobox name="command" placeholder="Type a command or search...">
<bs:bsui-combobox-input />
<bs:bsui-combobox-popup>
<bs:bsui-combobox-option value="dashboard" label="Go to dashboard" />
<bs:bsui-combobox-option value="deployments" label="Go to deployments" />
<bs:bsui-combobox-option value="billing" label="Go to billing" />
<bs:bsui-combobox-option value="new-project" label="Create new project" />
<bs:bsui-combobox-option value="invite" label="Invite a teammate" />
<bs:bsui-combobox-option value="rotate-key" label="Rotate API key" />
<bs:bsui-combobox-option value="theme" label="Toggle dark mode" />
<bs:bsui-combobox-option value="docs" label="Open documentation" />
<bs:bsui-combobox-option value="support" label="Contact support" />
</bs:bsui-combobox-popup>
</bs:bsui-combobox>
</bs:bsui-dialog-content>
</bs:bsui-dialog-popup>
</bs:bsui-dialog>
<bs:bsui-text content="or press" variant="caption" tag="span" />
<bs:bsui-kbd label="Cmd" />
<bs:bsui-kbd label="K" />
</bs:bsui-stack>How it works
Opening the dialog moves focus straight into the combobox input, and its store filters the destination list in context on each keystroke. Enter runs the highlighted command and closes both layers, while Escape steps back through list first, dialog second.
Every behaviour on this page is the WordPress Interactivity API: each component registers its own store, seeds its state in a server rendered context, and wires events with directives in the markup above. There is no page specific JavaScript.