Display
Kbd <pm-kbd>
Keyboard key or shortcut.
Press Ctrl + K to search
Sizes
Set with the size attribute; controls keep touch-sized targets on phones.
size="sm"size="md"size="lg"Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
size | 'sm' | 'md' | 'lg' | — | Size: sm, md or lg (md when not set). |
Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.
Slots
| Slot | Description |
|---|---|
(default) | Key label, e.g. ⌘ or Ctrl. |