Keyboard key
Content · researchedShows a key or shortcut so a person can learn the keyboard route to an action.
atom
Each block is the real component from that system’s own package, in an isolated frame. They are live: hover, focus and press them. Frames are drawn on white so systems compare on one ground, and a font a system licenses only for its own site (GOV.UK’s Transport) falls back to what the system itself specifies.
Ant Design
Typography.Text keyboard prop subset native: yes antd 6.6.5Carbon
Checked docs components list and source; no kbd element or key component. Keyboard shortcuts are covered only as guidelines pages.
GOV.UK
Checked: component index (https://design-system.service.gov.uk/components/ , 37 components), patterns index, styles index, repo tree src/govuk/components and objects, and installed govuk-frontend 6.5.1 components directory. No keyboard-key component.
Material Web
Checked docs/components (20 component pages), the repo top-level dirs, labs/, labs/gb/components and the installed 2.5.0 package. No kbd element.
Primer
KeybindingHint native: yes @primer/react 38.40.1- Variants
- normal, onEmphasis, onPrimary
- Sizes
- small, normal
- States documented
- —
- Accessibility guidance
- no
Primer React. Renders kbd elements for key glyphs; page status draft (index said experimental). No accessibility page on primer.style.
1 corrected on re-read
- variants: ["normal","onEmphasis"] → ["normal","onEmphasis","onPrimary"] Docs Variant section lists normal, onEmphasis, onPrimary (props table omits onPrimary); formats condensed|full
Spectrum
Keyboard native: yes- Variants
- —
- Sizes
- —
- States documented
- —
- Accessibility guidance
- no
Implementations: S2 and v3 Keyboard, built on React Aria Keyboard, which renders a native kbd element. No SWC or spectrum-css counterpart, no spectrum.adobe.com page; docs page not read. Not in installed SWC 1.12.4.
2 corrected on re-read
- a11y_documented: "unread" → "no" v3 Keyboard page headings: Example, Content, Props; no accessibility section
- urls: {"docs_url":"https://react-spectrum.adobe.com/react-spectrum/Keyboard.html","code_url":"https://github.com/adobe/react-spectrum/blob/main/packages/@react-spectrum/s2/exports/Keyboard.ts"} → {"docs_url":"https://react-spectrum.adobe.com/v3/Keyboard.html","code_url":"https://github.com/adobe/react-spectrum/blob/main/packages/@react-spectrum/s2/exports/Keyboard.ts"} HTTP 200; changed: docs_url
USWDS
Checked the docs component index and status page and the develop packages/ tree (88 entries, matching installed 3.14.0): no keyboard key component.
Platform facts
Anatomy
- key (nested kbd) — Spec: nested kbd 'represents an actual key or other single unit of input'.
- key combination (outer kbd) optional — Spec example: <kbd><kbd>Shift</kbd> + <kbd>F3</kbd></kbd>; the '+' is plain text between keys.
The seven states
| default | Static text. |
|---|---|
| hover | n/a — Not interactive. |
| focus | n/a — Not focusable by default. |
| active | n/a — Not interactive. |
| disabled | n/a — Not defined by APG or HTML. |
| error | n/a — Not defined by APG or HTML. |
| loading | n/a — Not defined by APG or HTML. |
Every cell was read twice, the second time from raw sources by a separate pass. 3 of 35 fields changed on the second read — open any “corrected” note to see what it said before.