Launch sale — 60% off Pro
Contact
kbdSequence

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

React kbd - Key Sequence with Then

Sequential keyboard shortcut Kbd components showing Ctrl+K then B pattern with text separator for multi-step shortcuts built with shadcn/ui

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


Some shortcuts require multiple steps—press Ctrl+K, release, then press B for sequential commands. This React pattern uses flex layout with KbdGroup for first chord, text then separator, and Kbd for final key documenting sequential keyboard shortcuts common in VS Code, Emacs, Sublime. Built with shadcn/ui Kbd component and muted-foreground text separator, it's perfect for editor documentation, IDE shortcut guides, complex application shortcuts, or any interface where multi-step key sequences execute commands requiring clear step-by-step instruction.

CtrlKthenB

Pattern created by @haydenbleasel

Installation

Questions you might have