Kbd

A keyboard key: a raised keycap, or a flat chip (filled or outline) for hints in menus and buttons.

Source on GitHub

default⌘ShiftP
filled⌘ShiftP
outline⌘ShiftP

Open the command palette with ⌘ + Shift + P.

Search ⌘K Save ⌘S
Code

API

For AI agents: this API as Markdown, or every component in llms-full.txt.

<ray-kbd> · RayKbd

PropertyAttributeTypeDefaultDescription
sizesize reflectsxs | sm | md | lg | xlsmFont size.
variantvariant reflectsdefault | filled | outlinedefaultdefault: raised keycap; filled: flat muted chip; outline: flat with a border.
SlotDescription
(default)The key name.
PartDescription
kbdThe inner <kbd>.