Kbd

Used to display textual keyboard input, shortcuts, and inline key prompts.

Installation

$npx maddex add Kbd

Basic

Use a single key token inline when the action reads like product copy instead of a full shortcut legend.

Preview

        
            
        
    

Grouped Shortcuts

Use KbdGroup to keep related keys together when the UI needs a shortcut legend instead of one standalone key.

Preview

        
            
        
    

Inside A Button

Place a keycap inside the action itself when the shortcut is tightly coupled to the button label.

Preview