A component to show keyboard shortcuts.
| Property | Type | Description |
|---|---|---|
| id | ?string | A unique identifier. |
| label | ?string | The content of the kbd. |
A
B
C
D
<c-kbd label="A" />
<c-kbd>B</c-kbd>
<c-kbd class="kbd-lg">C</c-kbd>
<c-kbd class="kbd-xl">D</c-kbd>
Press
CTRL
+
K
to search.
Press
F
to pay respect.
<span>Press <c-kbd label="CTRL" /> + <c-kbd label="K" /> to search.</span>
<span>Press <c-kbd>F</c-kbd> to pay respect.</span>