{
  "component": {
    "id": "button-group",
    "name": "Button group",
    "tier": "pro",
    "exampleId": "button-group",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/button-group-demo.tsx",
    "exportName": "ButtonGroupDemo",
    "sha256": "1a510b7299541a3813bae83be04743f41c98a92f683bece2e7d5bef92d93a822",
    "helperImports": [],
    "directComponentImports": [
      "button-group"
    ],
    "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 @tidal-pro/button-group",
    "registryUrl": "https://tidalui.com/r/pro/button-group.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/button-group",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/button-group",
      "registryUrl": "https://tidalui.com/r/pro/button-group.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/button-group.tsx",
    "exports": [
      "TidalButtonGroup",
      "TidalButtonGroupAction"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/button-group.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "button-group"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/button-group.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/button-group.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/button-group-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { TidalButtonGroup, type TidalButtonGroupAction } from \"./components/ui/button-group\";\n\nimport \"./components/ui/button-group.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .button-group-demo,\\n.tidal-scope .button-group-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .button-group-demo {\\n  display: grid;\\n  width: min(100%, 660px);\\n  min-width: 0;\\n  gap: 13px;\\n  padding: clamp(12px, 3.5cqi, 26px);\\n  color: var(--t-ink);\\n  container: button-group-demo / inline-size;\\n  font-family: Inter, ui-sans-serif, system-ui, sans-serif;\\n}\\n\\n.tidal-scope .button-group-demo-subject {\\n  display: flex;\\n  min-width: 0;\\n  align-items: baseline;\\n  justify-content: space-between;\\n  gap: 14px;\\n  padding-inline: 2px;\\n}\\n\\n.tidal-scope .button-group-demo-subject span {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 720;\\n  letter-spacing: 0.08em;\\n  line-height: 1.35;\\n  text-transform: uppercase;\\n}\\n\\n.tidal-scope .button-group-demo-subject strong {\\n  min-width: 0;\\n  font-size: clamp(17px, 3.4cqi, 23px);\\n  font-weight: 610;\\n  letter-spacing: -0.03em;\\n  line-height: 1.2;\\n  text-align: end;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .button-group-demo .tidal-button-group {\\n  width: 100%;\\n}\\n\\n.tidal-scope .button-group-demo-status,\\n.tidal-scope .button-group-demo-note {\\n  margin: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .button-group-demo-status {\\n  min-height: 18px;\\n  padding-inline: 2px;\\n  color: var(--t-ink);\\n  font-size: 12px;\\n  font-weight: 590;\\n  line-height: 1.5;\\n}\\n\\n.tidal-scope .button-group-demo-note {\\n  padding-top: 10px;\\n  border-top: 1px solid var(--t-border);\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.45;\\n}\\n\\n@container button-group-demo (max-width: 360px) {\\n  .tidal-scope .button-group-demo {\\n    padding-inline: 8px;\\n  }\\n\\n  .tidal-scope .button-group-demo-subject {\\n    align-items: flex-start;\\n    flex-direction: column;\\n    gap: 3px;\\n  }\\n\\n  .tidal-scope .button-group-demo-subject strong {\\n    text-align: start;\\n  }\\n\\n  .tidal-scope .button-group-demo .tidal-button-group-action {\\n    flex-basis: 100%;\\n  }\\n}\";\n\nfunction SaveIcon() {\n  return (\n    <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n      <path d=\"M3 2.5h8.5L13.5 5v8.5H3v-11Z\" stroke=\"currentColor\" />\n      <path d=\"M5.2 2.5v3.2h5.2V2.5M5.3 13.5V9h5.4v4.5\" stroke=\"currentColor\" />\n    </svg>\n  );\n}\n\nfunction DuplicateIcon() {\n  return (\n    <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n      <rect\n        x=\"5\"\n        y=\"4.5\"\n        width=\"7.5\"\n        height=\"8\"\n        rx=\"1.5\"\n        stroke=\"currentColor\"\n      />\n      <path\n        d=\"M10 4.5V3.2A1.7 1.7 0 0 0 8.3 1.5H3.2A1.7 1.7 0 0 0 1.5 3.2v5.1A1.7 1.7 0 0 0 3.2 10H5\"\n        stroke=\"currentColor\"\n      />\n    </svg>\n  );\n}\n\nfunction ArchiveIcon() {\n  return (\n    <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n      <path\n        d=\"M2.5 4.5h11v9h-11v-9ZM1.5 2h13v2.5h-13V2Z\"\n        stroke=\"currentColor\"\n      />\n      <path d=\"M6 7.5h4\" stroke=\"currentColor\" />\n    </svg>\n  );\n}\n\nexport function ButtonGroupDemo({ theme }: { theme?: \"light\" | \"dark\" }) {\n  const [copies, setCopies] = useState(0);\n  const [archived, setArchived] = useState(false);\n  const [status, setStatus] = useState(\n    \"Choose an action for the sample brief.\",\n  );\n\n  const actions: readonly TidalButtonGroupAction[] = [\n    {\n      id: \"save\",\n      label: \"Save draft\",\n      icon: <SaveIcon />,\n      emphasis: \"strong\",\n      buttonProps: {\n        onClick: () => setStatus(\"Sample draft saved locally.\"),\n      },\n    },\n    {\n      id: \"duplicate\",\n      label: copies ? `Duplicate ${copies + 1}` : \"Duplicate\",\n      icon: <DuplicateIcon />,\n      buttonProps: {\n        onClick: () => {\n          const next = copies + 1;\n          setCopies(next);\n          setStatus(`${next} local ${next === 1 ? \"copy\" : \"copies\"} created.`);\n        },\n      },\n    },\n    {\n      id: \"archive\",\n      label: archived ? \"Restore\" : \"Archive\",\n      icon: <ArchiveIcon />,\n      buttonProps: {\n        onClick: () => {\n          const next = !archived;\n          setArchived(next);\n          setStatus(\n            next\n              ? \"Sample brief archived locally.\"\n              : \"Sample brief restored locally.\",\n          );\n        },\n      },\n    },\n  ];\n\n  return (\n    <section\n      className=\"button-group-demo\"\n      aria-label=\"Button group preview\"\n      data-theme={theme}\n    >\n      <div className=\"button-group-demo-subject\">\n        <span>Sample document</span>\n        <strong>Project brief</strong>\n      </div>\n\n      <TidalButtonGroup label=\"Project brief actions\" actions={actions} wrap />\n\n      <p className=\"button-group-demo-status\" role=\"status\">\n        {status}\n      </p>\n      <p className=\"button-group-demo-note\">\n        Sample data. Changes stay in this preview.\n      </p>\n    </section>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <ButtonGroupDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/button-group.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": "Preserve browser focus order and visible focus.",
    "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": "server-gated"
  },
  "exceptions": []
}
