{
  "name": "kbd",
  "type": "ui:component",
  "title": "Kbd & KbdGroup",
  "description": "Monospace keyboard shortcut keycap primitive with crisp border bevel.",
  "dependencies": [],
  "registryDependencies": [
    "theme"
  ],
  "files": [
    {
      "path": "src/ui/kbd.tsx",
      "target": "src/ui/kbd.tsx",
      "sha256": "7d260546729c24099a69c07e9e1e513cdbf159b19634a0741f70757bb3d5a6cf",
      "content": "import './theme.css';\nimport { scope, type View } from '@fierst/blokd';\n\nconst kbdScope = scope`\n  :scope {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    min-width: 1.35rem;\n    height: 1.35rem;\n    padding: 0 0.35rem;\n    border-radius: var(--blokd-radius-xs);\n    border: 1px solid var(--blokd-border);\n    border-bottom-width: 2px;\n    background: var(--blokd-surface-muted);\n    color: var(--blokd-on-surface-muted);\n    font-family: var(--blokd-font-mono);\n    font-size: 0.72rem;\n    font-weight: 500;\n    line-height: 1;\n    user-select: none;\n  }\n`;\n\nconst kbdGroupScope = scope`\n  :scope {\n    display: inline-flex;\n    align-items: center;\n    gap: 0.2rem;\n  }\n`;\n\nexport function Kbd(props: { class?: string; children?: View }) {\n  return <kbd class={[kbdScope, props.class].filter(Boolean).join(' ')}>{props.children}</kbd>;\n}\n\nexport function KbdGroup(props: { keys: readonly string[]; class?: string }) {\n  return (\n    <span class={[kbdGroupScope, props.class].filter(Boolean).join(' ')}>\n      {props.keys.map((k, i) => (\n        <Kbd key={`${k}-${i}`}>{k}</Kbd>\n      ))}\n    </span>\n  );\n}\n"
    }
  ]
}
