{
  "$schema": "https://design.senvenli.com/schema/component.full.json",
  "kind": "component",
  "family": "display",
  "status": "alpha",
  "import": "@senvenli/react/display",
  "name": "kbd",
  "title": "Kbd",
  "exports": [
    "Kbd"
  ],
  "description": "A keyboard key or shortcut shown as a keycap in help text, menus and tooltips.",
  "keywords": [
    "keyboard",
    "shortcut",
    "hotkey",
    "key"
  ],
  "usage": {
    "when": [
      "Telling people which key or shortcut does something."
    ],
    "instead": [
      {
        "use": "badge",
        "when": "The label is a status, not a key."
      },
      {
        "use": "text",
        "when": "Code or a value is shown, not a key to press."
      }
    ]
  },
  "a11y": {
    "builtIn": [
      "Kbd isModifier shows ⌘ on Apple platforms and Ctrl elsewhere."
    ],
    "youProvide": [
      "A `label` for glyph keys a screen reader may skip (\"Command\" for ⌘)."
    ]
  },
  "genui": {
    "expose": false
  },
  "source": [
    "src/display/kbd.tsx"
  ],
  "props": {
    "Kbd": [
      {
        "name": "children",
        "type": "React.ReactNode",
        "required": false,
        "origin": "own",
        "description": "One key per Kbd; a shortcut is several Kbd separated by a space. Left out with `isModifier`."
      },
      {
        "name": "isModifier",
        "type": "boolean",
        "required": false,
        "origin": "own",
        "description": "The platform's shortcut modifier: ⌘ on Apple platforms, Ctrl elsewhere (Ctrl on the server, settled after mount).",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "label",
        "type": "string",
        "required": false,
        "origin": "own",
        "description": "What a screen reader says instead of a glyph it may skip (\"Command\" for ⌘); the glyph is then hidden.",
        "schema": {
          "type": "string"
        }
      }
    ]
  },
  "tokens": [
    "ds-border",
    "ds-border-bold",
    "ds-radius-xsmall",
    "ds-surface-raised",
    "ds-text-subtle",
    "font-ds-mono"
  ],
  "strings": [],
  "quality": {
    "tests": true,
    "a11y": false,
    "docs": false,
    "visual": false,
    "dark": false,
    "rtl": false,
    "mcp": true,
    "generic": true
  }
}
