Kbd
ReadyKeyboard key.
Press ⌘K to open the command palette, or Esc to close it.
Installation
$ npx @oratiq-js/ui add kbdCopies the component and everything it depends on into your project, then lists the npm packages to install. The code is yours after this.
Usage
import
import { Kbd, KbdGroup } from "@/components/ui/kbd";Keys and chords
⌘Esc⇧⌘KCtrlShiftP
Pinned to
dir="ltr". A shortcut is technical notation — ⌘ + K must not become K + ⌘ in an Arabic or Hebrew interface.View source on GitHub → components/ui/kbd.tsx