{"name":"kbd","title":"Kbd","description":"","kind":"component","category":"display","status":"beta","props":{"keys":{"type":"array","items":{"type":"string"},"default":[],"description":"The keys in order; each becomes one key part."},"variant":{"type":"enum","values":["boxed","plain"],"default":"boxed","description":"boxed: 18px key, radius.chip, surface with shadow.btn, mono 11px ink-2. plain: 11px text in the inherited font and colour."}},"playground":{"name":"Playground","props":{"keys":["⌘","K"],"variant":"boxed"}},"exampleFiles":[{"file":"shortcut-list","title":"Keyboard shortcuts"},{"file":"in-a-sentence","title":"In a sentence"},{"file":"composer-hint","title":"Hint under a comment box (plain)"}],"worstCase":[{"name":"Many keys","props":{"keys":["Ctrl","Shift","Alt","Page Down"],"variant":"boxed"}},{"name":"Long key","props":{"keys":["Ctrl+Shift+Alt+Backspace"],"variant":"plain"}},{"name":"Right-to-left","props":{"keys":["Ctrl","ك"],"variant":"boxed"}}],"anatomy":[{"part":"root","element":"kbd","description":"The whole shortcut. Nested <kbd> keys are how HTML marks up a key combination. dir=\"ltr\": the keys keep their reading order on a right-to-left page (⌘ then K), as printed on the keyboard."},{"part":"key","element":"kbd","repeat":true,"description":"One key or one run of keys (\"⌘\", \"K\", \"Ctrl+K\")."}],"slots":{},"states":[],"tokens":["color.surface","color.ink-2","shadow.btn","radius.chip","font.mono","text.2xs"],"a11y":{"notes":["Pair the hint with aria-keyshortcuts on the control it belongs to; the hint is for sight.","Write symbols the platform shows (⌘ on Apple, Ctrl elsewhere); screen readers read the characters."]},"motion":["none"]}