Kbd
The Kbd component creates a semantic HTML keyboard input element that visually represents keyboard input or shortcuts. It provides consistent styling for keyboard-related content.
Semantic HTML kbd element
Flexible size adjustment
Architecture
so-kbd
Slot: default
Reference
-
Kbd
The component that renders a semantic HTML
kbdelement. Content placed within this component will be styled to appear as keyboard input or shortcuts.-
Attributes
- idstring/ default: -
A unique identifier for the keyboard input element. This attribute is used for targeting the element with custom styling or scripting.
- sizeenum/ default: md
Controls the text size of the keyboard input element. The default
mdsize provides standard readability, while other options allow for flexible scaling to match different design contexts. Values range fromxsto6xl.
-
-