sigilUI

Hotkey Provider

Register keyboard shortcuts within a shared context.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { HotkeyProvider } from "@sigil-ui/components";

Usage

<HotkeyProvider hotkeys={[]}><div className="flex items-center gap-2"><KeyboardKey>⌘K</KeyboardKey><span>Hotkey provider mounted</span></div></HotkeyProvider>

CLI

npx @sigil-ui/cli add hotkey-provider

Token Integration

HotkeyProvider follows the Sigil component rules: styles resolve from var(--s-*), class names are mergeable through className, and the component is exported from @sigil-ui/components.