Display keyboard shortcuts inline and benefit from built-in focus behavior.
useKeyboard accepts shortcut strings such as Mod+s, where Mod resolves to
Command on macOS and Control on other platforms. A shortcut handler prevents the
browser default and stops propagation unless it returns a different policy.
npx shadcn@latest add @preskok/keyboardimport { Keyboard } from "@/components/ui/preskok-ui/keyboard"
export function Example() {
return <Keyboard keys={["⌘", "K"]} />
}No shortcut used yet