{
  "component": {
    "id": "keyboard-key",
    "name": "Keyboard key",
    "tier": "free",
    "exampleId": "keyboard-key",
    "access": "free",
    "requiresAuthorization": false
  },
  "source": {
    "demoModule": "src/keyboard-key-demo.tsx",
    "exportName": "KeyboardKeyDemo",
    "sha256": "8b5eb395feb65f818132e456633ca91ac51d4821225c3e8937ce1e521277dab4",
    "helperImports": [],
    "directComponentImports": [
      "keyboard-key"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add https://tidalui.com/r/keyboard-key.json",
    "registryUrl": "https://tidalui.com/r/keyboard-key.json",
    "access": "free",
    "sourceDelivery": "public-registry",
    "requiresAuthorization": false,
    "tokenSource": "none",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "https://tidalui.com/r/keyboard-key.json",
      "purpose": "component",
      "command": "npx shadcn@latest add https://tidalui.com/r/keyboard-key.json",
      "registryUrl": "https://tidalui.com/r/keyboard-key.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    }
  ],
  "imports": {
    "componentPath": "components/ui/keyboard-key.tsx",
    "exports": [
      "TidalKeyboardShortcut"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/keyboard-key.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "keyboard-key"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/keyboard-key.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/keyboard-key.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/keyboard-key-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { TidalKeyboardShortcut } from \"./components/ui/keyboard-key\";\n\nimport \"./components/ui/keyboard-key.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .keyboard-key-demo {\\n  width: 100%;\\n  max-width: 380px;\\n  min-width: 0;\\n}\\n.tidal-scope .keyboard-key-demo dl {\\n  margin: 0;\\n}\\n.tidal-scope .keyboard-key-demo dl > div {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 16px;\\n  padding: 15px 0;\\n  border-bottom: 1px solid var(--t-border);\\n}\\n.tidal-scope .keyboard-key-demo dt {\\n  color: var(--t-ink);\\n  font-size: 13px;\\n  min-width: 0;\\n  overflow-wrap: anywhere;\\n}\\n.tidal-scope .keyboard-key-demo dd {\\n  margin: 0;\\n  max-width: 65%;\\n}\\n.tidal-scope .keyboard-key-demo p {\\n  margin: 16px 0 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n}\";\n\nconst shortcuts = [\n  {\n    label: \"Search\",\n    keys: [\n      { id: \"cmd\", label: \"⌘\", accessibleLabel: \"Command\" },\n      { id: \"k\", label: \"K\", accessibleLabel: \"K\" },\n    ],\n  },\n  {\n    label: \"Switch project\",\n    keys: [\n      { id: \"cmd\", label: \"⌘\", accessibleLabel: \"Command\" },\n      { id: \"shift\", label: \"⇧\", accessibleLabel: \"Shift\" },\n      { id: \"p\", label: \"P\", accessibleLabel: \"P\" },\n    ],\n  },\n  {\n    label: \"Open help\",\n    keys: [\n      { id: \"shift\", label: \"⇧\", accessibleLabel: \"Shift\" },\n      { id: \"slash\", label: \"/\", accessibleLabel: \"Slash\" },\n    ],\n  },\n];\n\nexport function KeyboardKeyDemo() {\n  return (\n    <div className=\"keyboard-key-demo\" aria-label=\"Example shortcut labels\">\n      <dl>\n        {shortcuts.map((shortcut) => (\n          <div key={shortcut.label}>\n            <dt>{shortcut.label}</dt>\n            <dd>\n              <TidalKeyboardShortcut keys={shortcut.keys} />\n            </dd>\n          </div>\n        ))}\n      </dl>\n      <p>\n        Display labels only. These shortcuts are not active in this preview.\n      </p>\n    </div>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <KeyboardKeyDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/keyboard-key.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [],
  "events": [],
  "nativeForm": {
    "participates": false,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "No form submit is present in the existing demo.",
    "resetBehavior": "No reset control is present in the existing demo.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Existing demo label or ARIA prop",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Verify focus returns to the invoking control after dismissal.",
    "errorAnnouncement": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "No error fixture is exposed by the existing demo; inject a consumer-owned failure state before production use.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "present-local"
  },
  "exceptions": []
}
