{
  "component": {
    "id": "toolbar",
    "name": "Toolbar",
    "tier": "pro",
    "exampleId": "toolbar",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/toolbar-demo.tsx",
    "exportName": "ToolbarDemo",
    "sha256": "f8d7948d444a704e99fd1a5f46dd55342d9d1c384fb245906824423811d26868",
    "helperImports": [],
    "directComponentImports": [
      "toolbar"
    ],
    "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/toolbar",
    "registryUrl": "https://tidalui.com/r/pro/toolbar.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/toolbar",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/toolbar",
      "registryUrl": "https://tidalui.com/r/pro/toolbar.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/toolbar.tsx",
    "exports": [
      "TidalToolbar",
      "TidalToolbarItem"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/toolbar.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-dropdown-menu"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "toolbar"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/toolbar.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/toolbar.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/toolbar-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { TidalToolbar, type TidalToolbarItem } from \"./components/ui/toolbar\";\n\nimport \"./components/ui/toolbar.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .toolbar-demo,\\n.tidal-scope .toolbar-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .toolbar-demo {\\n  display: grid;\\n  width: min(100%, 620px);\\n  min-width: 0;\\n  gap: 12px;\\n}\\n\\n.tidal-scope .toolbar-demo-text {\\n  min-height: 108px;\\n  padding: 24px;\\n  color: var(--t-ink);\\n  background: var(--t-surface);\\n  border: 1px solid var(--t-border);\\n  border-radius: 18px;\\n  box-shadow: 0 18px 40px -38px #0000008c;\\n  font-size: clamp(18px, 4cqi, 27px);\\n  letter-spacing: -0.025em;\\n  line-height: 1.35;\\n  overflow-wrap: anywhere;\\n  transition:\\n    font-weight 160ms var(--t-ease-out),\\n    letter-spacing 160ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .toolbar-demo-text[data-align=\\\"center\\\"] {\\n  text-align: center;\\n}\\n\\n.tidal-scope .toolbar-demo-status {\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  text-align: center;\\n  overflow-wrap: anywhere;\\n}\\n\\n@media (max-width: 390px) {\\n  .tidal-scope .toolbar-demo-text {\\n    min-height: 96px;\\n    padding: 18px;\\n    font-size: 19px;\\n  }\\n\\n  .tidal-scope .toolbar-demo-status {\\n    font-size: 12px;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .toolbar-demo-text {\\n    transition: none;\\n  }\\n}\";\n\nexport function ToolbarDemo({ theme = \"light\" }: { theme?: \"light\" | \"dark\" }) {\n  const [bold, setBold] = useState(false);\n  const [italic, setItalic] = useState(false);\n  const [alignment, setAlignment] = useState<\"left\" | \"center\">(\"left\");\n  const [status, setStatus] = useState(\"Formatting is ready.\");\n\n  const reset = () => {\n    setBold(false);\n    setItalic(false);\n    setAlignment(\"left\");\n    setStatus(\"Formatting cleared.\");\n  };\n\n  const items: TidalToolbarItem[] = [\n    {\n      id: \"bold\",\n      label: \"Bold\",\n      icon: <b>B</b>,\n      pressed: bold,\n      onAction: () => {\n        setBold((value) => !value);\n        setStatus(`Bold ${bold ? \"off\" : \"on\"}.`);\n      },\n    },\n    {\n      id: \"italic\",\n      label: \"Italic\",\n      icon: <i>I</i>,\n      pressed: italic,\n      separatorAfter: true,\n      onAction: () => {\n        setItalic((value) => !value);\n        setStatus(`Italic ${italic ? \"off\" : \"on\"}.`);\n      },\n    },\n    {\n      id: \"align-left\",\n      label: \"Left\",\n      icon: \"≡\",\n      pressed: alignment === \"left\",\n      onAction: () => {\n        setAlignment(\"left\");\n        setStatus(\"Text aligned left.\");\n      },\n    },\n    {\n      id: \"align-center\",\n      label: \"Center\",\n      icon: \"≡\",\n      pressed: alignment === \"center\",\n      onAction: () => {\n        setAlignment(\"center\");\n        setStatus(\"Text centered.\");\n      },\n    },\n    {\n      id: \"clear\",\n      label: \"Clear formatting\",\n      disabled: !bold && !italic && alignment === \"left\",\n      onAction: reset,\n    },\n  ];\n\n  return (\n    <section className=\"toolbar-demo\" aria-label=\"Text formatting preview\">\n      <TidalToolbar\n        label=\"Text formatting\"\n        items={items}\n        overflowIds={[\"align-left\", \"align-center\", \"clear\"]}\n        overflowLabel=\"More\"\n        overflowAccessibleLabel=\"More text formatting actions\"\n        theme={theme}\n      />\n\n      <div\n        className=\"toolbar-demo-text\"\n        data-align={alignment}\n        style={{\n          fontWeight: bold ? 720 : 460,\n          fontStyle: italic ? \"italic\" : \"normal\",\n        }}\n      >\n        Review the launch notes before Wednesday at 10:00.\n      </div>\n\n      <p className=\"toolbar-demo-status\" role=\"status\" aria-live=\"polite\">\n        {status} 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      <ToolbarDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/toolbar.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "align",
      "type": "inferred-from-existing-demo",
      "initial": "\"left\"",
      "setter": "setAlignment",
      "proposalCanBeRejected": false
    }
  ],
  "events": [],
  "nativeForm": {
    "participates": true,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "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": "The existing error or alert path remains consumer-owned and should be announced by the rendered semantics.",
    "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": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "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": []
}
