{
  "component": {
    "id": "skeleton",
    "name": "Skeleton",
    "tier": "free",
    "exampleId": "skeleton",
    "access": "free",
    "requiresAuthorization": false
  },
  "source": {
    "demoModule": "src/skeleton-demo.tsx",
    "exportName": "SkeletonDemo",
    "sha256": "5ffa0318f317390a4dcc9e77c77f13237944a4d25341367c95bcc5142eedb44d",
    "helperImports": [],
    "directComponentImports": [
      "skeleton",
      "status-badge",
      "tidal-button"
    ],
    "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/skeleton.json",
    "registryUrl": "https://tidalui.com/r/skeleton.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/skeleton.json",
      "purpose": "component",
      "command": "npx shadcn@latest add https://tidalui.com/r/skeleton.json",
      "registryUrl": "https://tidalui.com/r/skeleton.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    },
    {
      "order": 2,
      "kind": "demo-only-additional",
      "dependency": "https://tidalui.com/r/status-badge.json",
      "purpose": "complete-example-demo-dependency",
      "command": "npx shadcn@latest add https://tidalui.com/r/status-badge.json",
      "registryUrl": "https://tidalui.com/r/status-badge.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    },
    {
      "order": 3,
      "kind": "demo-only-additional",
      "dependency": "https://tidalui.com/r/tidal-button.json",
      "purpose": "complete-example-demo-dependency",
      "command": "npx shadcn@latest add https://tidalui.com/r/tidal-button.json",
      "registryUrl": "https://tidalui.com/r/tidal-button.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    }
  ],
  "imports": {
    "componentPath": "components/ui/skeleton.tsx",
    "exports": [
      "TidalButton",
      "TidalSkeleton",
      "TidalSkeletonRegion",
      "TidalStatusBadge"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/skeleton.css",
      "components/ui/status-badge.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [
      "https://tidalui.com/r/status-badge.json",
      "https://tidalui.com/r/tidal-button.json"
    ],
    "installClosure": [
      "skeleton",
      "status-badge",
      "tidal-button"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/skeleton.css",
      "components/ui/status-badge.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/skeleton.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/skeleton-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useEffect, useLayoutEffect, useRef, useState, type CSSProperties } from \"react\";\n\nimport { Check, LayoutDashboard, RotateCcw, ArrowUpRight } from \"lucide-react\";\n\nimport { TidalSkeleton, TidalSkeletonRegion } from \"./components/ui/skeleton\";\n\nimport { TidalButton } from \"./components/ui/tidal-button\";\n\nimport { TidalStatusBadge } from \"./components/ui/status-badge\";\n\nimport \"./components/ui/skeleton.css\";\n\nimport \"./components/ui/status-badge.css\";\n\n\n\nconst tidalExampleStyles = \".skeleton-specimen {\\n  width: 100%;\\n  max-width: 620px;\\n  padding: 28px;\\n  border: 1px solid var(--t-border);\\n  border-radius: var(--t-radius-card);\\n  background: var(--t-surface);\\n  box-shadow:\\n    0 24px 40px -28px #00000035,\\n    0 2px 4px #00000008;\\n}\\n.skeleton-specimen > h3 {\\n  font-size: 29px;\\n  line-height: 1.08;\\n  letter-spacing: -1px;\\n  font-weight: 500;\\n  margin: 13px 0 25px;\\n}\\n.skeleton-specimen > h3 > em {\\n  font-family: \\\"Instrument Serif\\\", serif;\\n  font-size: 1.2em;\\n  font-weight: 400;\\n}\\n.skeleton-demo-shell {\\n  border: 1px solid var(--t-ink);\\n  border-radius: 14px;\\n  padding: 12px;\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n  box-shadow: 0 12px 22px -14px #00000045;\\n}\\n.skeleton-demo-shell-top {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n  padding: 2px 2px 13px;\\n  font-size: 11px;\\n  letter-spacing: 1.1px;\\n}\\n.skeleton-demo-shell-top > span:first-child {\\n  display: flex;\\n  align-items: center;\\n  gap: 6px;\\n}\\n.skeleton-demo-shell-top > span:first-child > span {\\n  width: 5px;\\n  height: 5px;\\n  border-radius: 50%;\\n  border: 1px solid currentColor;\\n}\\n.skeleton-demo-shell-top > span:last-child {\\n  opacity: 0.7;\\n}\\n.skeleton-demo-paper {\\n  padding: 22px;\\n  border-radius: 8px;\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n}\\n.skeleton-demo-summary {\\n  display: flex;\\n  align-items: center;\\n  gap: 11px;\\n  min-height: 46px;\\n}\\n.skeleton-demo-summary > div:not(.tidal-skeleton) {\\n  flex: 1;\\n  min-width: 0;\\n}\\n.skeleton-demo-summary > .tidal-skeleton {\\n  flex: none;\\n}\\n.skeleton-demo-summary strong {\\n  display: block;\\n  font-size: 12px;\\n  font-weight: 550;\\n}\\n.skeleton-demo-summary small {\\n  display: block;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  margin-top: 5px;\\n}\\n.skeleton-demo-summary > .tidal-status-badge {\\n  flex: none;\\n}\\n.skeleton-demo-icon {\\n  width: 46px;\\n  height: 46px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  display: grid;\\n  place-items: center;\\n  background: linear-gradient(160deg, var(--t-surface), var(--t-wash));\\n  box-shadow:\\n    inset 0 1px 0 #ffffff13,\\n    0 1px 2px #00000008;\\n  flex: none;\\n}\\n.skeleton-demo-metric {\\n  display: flex;\\n  align-items: center;\\n  gap: 16px;\\n  margin: 24px 0 20px;\\n  min-height: 46px;\\n}\\n.skeleton-demo-metric > span:last-child > strong {\\n  display: block;\\n  font-size: 11px;\\n  font-weight: 500;\\n}\\n.skeleton-demo-metric > span:last-child > small {\\n  display: flex;\\n  align-items: center;\\n  gap: 3px;\\n  font-size: 11px;\\n  color: var(--t-muted);\\n  margin-top: 6px;\\n}\\n.skeleton-demo-value {\\n  font-size: 44px;\\n  line-height: 46px;\\n  letter-spacing: -2px;\\n  font-variant-numeric: tabular-nums;\\n  font-weight: 500;\\n}\\n.skeleton-demo-value > span {\\n  display: flex;\\n}\\n.skeleton-demo-digit {\\n  display: block;\\n  overflow: hidden;\\n  height: 46px;\\n  width: 0.64em;\\n}\\n.skeleton-demo-digit > span {\\n  display: block;\\n  transform: translateY(var(--digit-position));\\n  animation: skeleton-demo-roll 660ms var(--t-ease-out) both;\\n}\\n.skeleton-demo-digit > span > span {\\n  display: block;\\n  height: 46px;\\n}\\n@keyframes skeleton-demo-roll {\\n  from {\\n    transform: translateY(-90%);\\n  }\\n  to {\\n    transform: translateY(var(--digit-position));\\n  }\\n}\\n.skeleton-demo-figure {\\n  margin: 0;\\n}\\n.skeleton-demo-chart {\\n  display: flex;\\n  align-items: stretch;\\n  gap: 12px;\\n  height: 108px;\\n  padding-top: 8px;\\n}\\n.skeleton-demo-chart > div {\\n  flex: 1;\\n  min-width: 0;\\n  display: flex;\\n  flex-direction: column;\\n  justify-content: flex-end;\\n  align-items: center;\\n  gap: 9px;\\n}\\n.skeleton-demo-bar {\\n  width: 100%;\\n  border-radius: 4px 4px 1px 1px;\\n  background: linear-gradient(\\n    180deg,\\n    color-mix(in srgb, var(--t-ink) 73%, var(--t-surface)),\\n    var(--t-ink)\\n  );\\n  transform-origin: bottom;\\n  animation: skeleton-demo-bar-in 520ms var(--t-ease-out) both;\\n}\\n.skeleton-demo-chart > div > span:last-child {\\n  font-size: 11px;\\n  color: var(--t-muted);\\n  line-height: 12px;\\n}\\n.skeleton-demo-figure figcaption {\\n  font-size: 11px;\\n  color: var(--t-muted);\\n  margin-top: 12px;\\n  padding-bottom: 15px;\\n  border-bottom: 1px solid var(--t-border);\\n}\\n@keyframes skeleton-demo-bar-in {\\n  from {\\n    transform: scaleY(0.08);\\n    opacity: 0;\\n  }\\n  to {\\n    transform: scaleY(1);\\n    opacity: 1;\\n  }\\n}\\n.skeleton-demo-events {\\n  margin-top: 8px;\\n}\\n.skeleton-demo-events > div {\\n  display: flex;\\n  align-items: center;\\n  gap: 9px;\\n  min-height: 37px;\\n  font-size: 11px;\\n}\\n.skeleton-demo-ready .skeleton-demo-events > div {\\n  animation: skeleton-demo-row-in 360ms var(--t-ease-out) both;\\n}\\n.skeleton-demo-events > div > span:nth-child(2) {\\n  flex: 1;\\n  min-width: 0;\\n}\\n.skeleton-demo-events small {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  letter-spacing: 0.5px;\\n}\\n.skeleton-demo-check {\\n  width: 23px;\\n  height: 23px;\\n  border-radius: 50%;\\n  display: grid;\\n  place-items: center;\\n  background: var(--t-wash);\\n  color: var(--t-ink);\\n  flex: none;\\n}\\n@keyframes skeleton-demo-row-in {\\n  from {\\n    opacity: 0;\\n    transform: translateX(-5px);\\n  }\\n  to {\\n    opacity: 1;\\n    transform: translateX(0);\\n  }\\n}\\n.skeleton-demo-placeholder\\n  .skeleton-demo-summary\\n  > div\\n  > .tidal-skeleton\\n  + div {\\n  margin-top: 10px;\\n}\\n.skeleton-demo-placeholder .skeleton-demo-metric {\\n  align-items: flex-end;\\n  gap: 16px;\\n}\\n.skeleton-demo-placeholder .skeleton-demo-metric > .tidal-skeleton:last-child {\\n  margin-bottom: 9px;\\n}\\n.skeleton-demo-placeholder .skeleton-demo-chart > .tidal-skeleton {\\n  flex: none;\\n}\\n.skeleton-demo-placeholder .skeleton-demo-events {\\n  border-top: 1px solid var(--t-border);\\n  padding-top: 15px;\\n  margin-top: 39px;\\n}\\n.skeleton-demo-placeholder\\n  .skeleton-demo-events\\n  > div\\n  > .tidal-skeleton:nth-child(2) {\\n  margin-right: auto;\\n}\\n.skeleton-demo-placeholder\\n  .skeleton-demo-chart\\n  > div\\n  > .tidal-skeleton:first-child {\\n  width: 100%;\\n  border-radius: 4px 4px 1px 1px;\\n}\\n.skeleton-demo-actions {\\n  display: flex;\\n  gap: 8px;\\n  flex-wrap: wrap;\\n  margin-top: 22px;\\n}\\n.skeleton-demo-actions > .tidal-button {\\n  font-size: 11px;\\n  padding-inline: 13px;\\n}\\n.skeleton-demo-note {\\n  margin: 16px 0 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.7;\\n  min-height: 16px;\\n}\\n@media (max-width: 480px) {\\n  .skeleton-specimen {\\n    padding: 22px;\\n  }\\n  .skeleton-demo-paper {\\n    padding: 17px;\\n  }\\n  .skeleton-demo-summary {\\n    gap: 8px;\\n    flex-wrap: wrap;\\n  }\\n  .skeleton-demo-summary > div:not(.tidal-skeleton) {\\n    min-width: 120px;\\n  }\\n  .skeleton-demo-summary > .tidal-status-badge,\\n  .skeleton-demo-summary > .tidal-skeleton:last-child {\\n    margin-left: 54px;\\n  }\\n  .skeleton-demo-chart {\\n    gap: 9px;\\n  }\\n  .skeleton-demo-metric {\\n    gap: 12px;\\n  }\\n  .skeleton-demo-metric > span:last-child > small {\\n    font-size: 11px;\\n  }\\n}\\n@media (prefers-reduced-motion: reduce) {\\n  .skeleton-demo-bar {\\n    transform: none;\\n  }\\n  .skeleton-demo-ready .skeleton-demo-events > div {\\n    transform: none;\\n  }\\n}\";\n\nconst days = [\n  { day: \"Mon\", tasks: 9 },\n  { day: \"Tue\", tasks: 12 },\n  { day: \"Wed\", tasks: 7 },\n  { day: \"Thu\", tasks: 11 },\n  { day: \"Fri\", tasks: 15 },\n  { day: \"Sat\", tasks: 13 },\n  { day: \"Sun\", tasks: 17 },\n];\n\nfunction SampleSkeleton() {\n  return (\n    <div className=\"skeleton-demo-placeholder\">\n      <div className=\"skeleton-demo-summary\">\n        <TidalSkeleton width={46} height={46} shape=\"rounded\" />\n        <div>\n          <TidalSkeleton width=\"68%\" height={12} />\n          <TidalSkeleton width=\"44%\" height={9} />\n        </div>\n        <TidalSkeleton width={92} height={23} />\n      </div>\n      <div className=\"skeleton-demo-metric\">\n        <TidalSkeleton width={86} height={46} />\n        <TidalSkeleton width={112} height={9} />\n      </div>\n      <div className=\"skeleton-demo-chart\" aria-hidden=\"true\">\n        {days.map((d, i) => (\n          <div key={d.day}>\n            <TidalSkeleton height={`${36 + i * 8}%`} shape=\"rounded\" />\n            <TidalSkeleton width=\"60%\" height={7} />\n          </div>\n        ))}\n      </div>\n      <div className=\"skeleton-demo-events\">\n        {[0, 1, 2].map((i) => (\n          <div key={i}>\n            <TidalSkeleton shape=\"circle\" width={23} height={23} />\n            <TidalSkeleton width={`${64 - i * 11}%`} height={10} />\n            <TidalSkeleton width={28} height={8} />\n          </div>\n        ))}\n      </div>\n    </div>\n  );\n}\n\nfunction SampleOverview() {\n  return (\n    <div className=\"skeleton-demo-ready\">\n      <div className=\"skeleton-demo-summary\">\n        <span className=\"skeleton-demo-icon\">\n          <LayoutDashboard size={19} aria-hidden=\"true\" />\n        </span>\n        <div>\n          <strong>Northstar overview</strong>\n          <small>Fictional workspace · this week</small>\n        </div>\n        <TidalStatusBadge label=\"Sample data\" status=\"success\" size=\"sm\" />\n      </div>\n      <div className=\"skeleton-demo-metric\">\n        <span className=\"skeleton-demo-value\" aria-label=\"84 completed tasks\">\n          <span aria-hidden=\"true\">\n            {[8, 4].map((digit, i) => (\n              <span className=\"skeleton-demo-digit\" key={i}>\n                <span\n                  style={\n                    {\n                      \"--digit-position\": `-${digit * 10}%`,\n                      animationDelay: `${i * 60}ms`,\n                    } as CSSProperties\n                  }\n                >\n                  {[0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((n) => (\n                    <span key={n}>{n}</span>\n                  ))}\n                </span>\n              </span>\n            ))}\n          </span>\n        </span>\n        <span>\n          <strong>Completed tasks</strong>\n          <small>\n            <ArrowUpRight size={11} aria-hidden=\"true\" /> +16.7% from last\n            week's 72\n          </small>\n        </span>\n      </div>\n      <figure\n        className=\"skeleton-demo-figure\"\n        aria-label=\"Completed sample tasks, Monday to Sunday: 9, 12, 7, 11, 15, 13, 17. Total 84.\"\n      >\n        <div className=\"skeleton-demo-chart\" aria-hidden=\"true\">\n          {days.map((d, i) => (\n            <div key={d.day}>\n              <span\n                className=\"skeleton-demo-bar\"\n                style={{\n                  height: `${(d.tasks / 17) * 82}px`,\n                  animationDelay: `${110 + i * 45}ms`,\n                }}\n              />\n              <span>{d.day}</span>\n            </div>\n          ))}\n        </div>\n        <figcaption>Seven days of steady progress.</figcaption>\n      </figure>\n      <div className=\"skeleton-demo-events\">\n        {[\n          \"Landing page refreshed\",\n          \"Design tokens reviewed\",\n          \"Preview prepared\",\n        ].map((event, i) => (\n          <div key={event} style={{ animationDelay: `${250 + i * 65}ms` }}>\n            <span className=\"skeleton-demo-check\">\n              <Check size={11} aria-hidden=\"true\" />\n            </span>\n            <span>{event}</span>\n            <small>0{i + 1}</small>\n          </div>\n        ))}\n      </div>\n    </div>\n  );\n}\n\nexport function SkeletonDemo() {\n  const [loading, setLoading] = useState(false);\n  const timer = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n  const replayButton = useRef<HTMLButtonElement | null>(null),\n    focusOwner = useRef<HTMLElement | null>(null);\n  useEffect(() => () => clearTimeout(timer.current), []);\n  useLayoutEffect(() => {\n    if (loading || !focusOwner.current) return;\n    const active = document.activeElement;\n    if (active === document.body || active === focusOwner.current)\n      replayButton.current?.focus({ preventScroll: true });\n    focusOwner.current = null;\n  }, [loading]);\n  function replay(source: HTMLElement) {\n    clearTimeout(timer.current);\n    focusOwner.current = source;\n    setLoading(true);\n    timer.current = setTimeout(() => setLoading(false), 1600);\n  }\n  function reset() {\n    clearTimeout(timer.current);\n    focusOwner.current = null;\n    setLoading(false);\n  }\n  return (\n    <div className=\"skeleton-specimen\" data-loading={loading}>\n      <div className=\"skeleton-demo-shell\">\n        <div className=\"skeleton-demo-shell-top\">\n          <span>\n            <span aria-hidden=\"true\" /> OVERVIEW\n          </span>\n          <span>{loading ? \"LOADING\" : \"RESOLVED\"}</span>\n        </div>\n        <div className=\"skeleton-demo-paper\">\n          <TidalSkeletonRegion\n            label=\"Sample workspace overview\"\n            loading={loading}\n            placeholder={<SampleSkeleton />}\n            loadingLabel=\"Loading sample overview\"\n            readyLabel=\"Sample overview ready\"\n            announce\n          >\n            <SampleOverview />\n          </TidalSkeletonRegion>\n        </div>\n      </div>\n      <div className=\"skeleton-demo-actions\">\n        <TidalButton\n          ref={replayButton}\n          onClick={(event) => replay(event.currentTarget)}\n          disabled={loading}\n        >\n          <RotateCcw size={13} aria-hidden=\"true\" />\n          Replay loading\n        </TidalButton>\n        <TidalButton variant=\"ghost\" onClick={reset} disabled={!loading}>\n          Show content\n        </TidalButton>\n      </div>\n      <p className=\"skeleton-demo-note\">\n        {loading\n          ? \"Matching shapes hold the space while the sample loads.\"\n          : \"A simulated delay, followed by real selectable sample content.\"}\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      <SkeletonDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/skeleton.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "loading",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setLoading",
      "proposalCanBeRejected": false
    },
    {
      "prop": "disabled",
      "type": "inferred-from-existing-demo",
      "initial": "false",
      "setter": "setLoading",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "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": "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": "present-local"
  },
  "exceptions": []
}
