Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic
Display

Kbd <pm-kbd>

Keyboard key or shortcut.

Full screen
Press Ctrl + K to search

This component has no props to try here.

<script type="module"> import '@prismora/css'; import '@prismora/elements/kbd'; </script> Press <pm-kbd>Ctrl</pm-kbd> + <pm-kbd>K</pm-kbd> to search

Sizes

Set with the size attribute; controls keep touch-sized targets on phones.

Ctrl
size="sm"
Ctrl
size="md"
Ctrl
size="lg"

Attributes

AttributeTypeDefaultDescription
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

SlotDescription
(default)Key label, e.g. ⌘ or Ctrl.