HQ UI

KBD

KBD is a component to display which key or combination of keys performs a given action.

Installation

npx shadcn@latest add https://hq-ui.vercel.app/r/kbd

Blocks

kbd-group-demo

Use Ctrl + BCtrl + K to open the command palette

kbd-button-demo
kbd-dropdown-menu-demo
kbd-input-group-demo
K
kbd-tooltip-demo

Keys

KeySymbolName
ctrl^Control
modCommand/Control
winWin
metaMeta
altOption/Alt
shiftShift
spaceSpace
tabTab
deleteDelete
capslockCaps Lock
upUp
rightRight
downDown
leftLeft
pageupPage Up
pagedownPage Down
homeHome
endEnd
enterEnter
escEscape
fnFnFunction