Launch sale — 60% off Pro
Contact
kbdPressed State

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React kbd - Disabled State

A React keyboard key showing disabled state with opacity-50 and cursor-not-allowed using shadcn/ui Kbd component to indicate unavailable shortcuts

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Not all shortcuts are always available. This React pattern shows Kbd in disabled state using opacity-50 and cursor-not-allowed classes—visually communicates when keyboard shortcuts are unavailable in current context. Built with shadcn/ui Kbd component, it's perfect for contextual help displaying inactive shortcuts, keyboard reference showing disabled commands, adaptive UIs indicating unavailable features, or documentation teaching when shortcuts won't work.

Pattern created by @haydenbleasel

Installation

Questions you might have