Skip to content
kapable

CommandK

Navigation · 1 export · v0.1.0 · showcase

Page-level keyboard binding that toggles a named CommandPalette.

Browse 72 component families

CommandK is a page-level client binding with no truthful interactive state in static HTML. This server-rendered page does not imitate client behavior. Open the live playground.

Usage

CommandK usage
<CommandK target="commands" />

API

CommandK API

CommandKProps

Global ⌘K / Ctrl+K binding for a CommandPalette (or any kit Dialog): a kit-shipped island (the Toaster category) — mount ONE per page with the target dialog's id. Toggles: open palettes close on a second press. Enhancer discipline: started-guard, listener torn down on abort.

CommandK props
proptypenotes
targetstringThe Dialog/CommandPalette id to toggle.

More in Navigation

More in Navigation