{
  "component": {
    "id": "spinner",
    "name": "Spinner",
    "tier": "free",
    "exampleId": "spinner",
    "access": "free",
    "requiresAuthorization": false
  },
  "source": {
    "demoModule": "src/spinner-demo.tsx",
    "exportName": "SpinnerDemo",
    "sha256": "ae6817d558874853cbfb1887e8942f39db73021a728eda7c96c2f531c7ddea67",
    "helperImports": [],
    "directComponentImports": [
      "spinner"
    ],
    "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/spinner.json",
    "registryUrl": "https://tidalui.com/r/spinner.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/spinner.json",
      "purpose": "component",
      "command": "npx shadcn@latest add https://tidalui.com/r/spinner.json",
      "registryUrl": "https://tidalui.com/r/spinner.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    }
  ],
  "imports": {
    "componentPath": "components/ui/spinner.tsx",
    "exports": [
      "TidalSpinner"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/spinner.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "spinner"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/spinner.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/spinner.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/spinner-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useId, useState } from \"react\";\n\nimport { TidalSpinner } from \"./components/ui/spinner\";\n\nimport \"./components/ui/spinner.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .spinner-demo {\\n  width: min(100%, 380px);\\n  min-width: 0;\\n}\\n.tidal-scope .spinner-demo-stage {\\n  min-height: 150px;\\n  display: flex;\\n  align-items: center;\\n  justify-content: center;\\n  padding: 24px 8px;\\n}\\n.tidal-scope .spinner-demo-controls {\\n  display: flex;\\n  flex-wrap: wrap;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 12px;\\n  border-top: 1px solid var(--t-border);\\n  padding-top: 16px;\\n}\\n.tidal-scope .spinner-demo-controls label {\\n  display: flex;\\n  align-items: center;\\n  gap: 10px;\\n  color: var(--t-muted);\\n  font-size: 12px;\\n}\\n.tidal-scope .spinner-demo-controls select,\\n.tidal-scope .spinner-demo-controls button {\\n  min-height: 44px;\\n  border: 1px solid var(--t-border);\\n  border-radius: var(--t-radius-control);\\n  padding: 8px 12px;\\n  color: var(--t-ink);\\n  background: var(--t-surface);\\n}\\n.tidal-scope .spinner-demo-controls select {\\n  font-size: 16px;\\n}\\n.tidal-scope .spinner-demo-controls button {\\n  font-size: 12px;\\n}\";\n\nexport function SpinnerDemo() {\n  const id = useId();\n  const [size, setSize] = useState<\"sm\" | \"md\" | \"lg\">(\"md\");\n  const [paused, setPaused] = useState(false);\n  return (\n    <section className=\"spinner-demo\" aria-label=\"Loading indicator preview\">\n      <div className=\"spinner-demo-stage\">\n        <TidalSpinner\n          label=\"Loading activity\"\n          labelVisible\n          size={size}\n          paused={paused}\n        />\n      </div>\n      <div className=\"spinner-demo-controls\">\n        <label htmlFor={`${id}-size`}>\n          Size{\" \"}\n          <select\n            id={`${id}-size`}\n            value={size}\n            onChange={(event) =>\n              setSize(event.currentTarget.value as \"sm\" | \"md\" | \"lg\")\n            }\n          >\n            <option value=\"sm\">Small</option>\n            <option value=\"md\">Medium</option>\n            <option value=\"lg\">Large</option>\n          </select>\n        </label>\n        <button type=\"button\" onClick={() => setPaused((value) => !value)}>\n          {paused ? \"Resume animation\" : \"Pause animation\"}\n        </button>\n      </div>\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      <SpinnerDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/spinner.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "size",
      "type": "inferred-from-existing-demo",
      "initial": "\"md\"",
      "setter": "setSize",
      "proposalCanBeRejected": false
    },
    {
      "prop": "paused",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setPaused",
      "proposalCanBeRejected": false
    },
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "\"md\"",
      "setter": "setSize",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onChange",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "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": "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": "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": "present-local"
  },
  "exceptions": []
}
