SimpleWiki

Kbd

The kbd component displays keyboard keys in a styled format.

It is useful for documenting shortcuts, controls, and key combinations.


Basic Usage

Press :keyboard{keys="Ctrl+S"} to save your changes.

Result:

Press CtrlS to save your changes.


Key Combinations

Multiple keys can be separated using +.

:keyboard{keys="Ctrl+Shift+P"}

Result:

CtrlShiftP

Single Keys

Single keys are also supported.

Press :keyboard{keys="Enter"} to continue.

Result:

Press Enter to continue.


Examples

- Open the menu with :keyboard{keys="Ctrl+K"}
- Confirm with :keyboard{keys="Enter"}
- Close the window with :keyboard{keys="Alt+F4"}

Result:

  • Open the menu with CtrlK
  • Confirm with Enter
  • Close the window with AltF4