{
  "component": {
    "id": "slider",
    "name": "Slider",
    "tier": "free",
    "exampleId": "slider",
    "access": "free",
    "requiresAuthorization": false
  },
  "source": {
    "demoModule": "src/slider-demo.tsx",
    "exportName": "SliderDemo",
    "sha256": "ea8b75a54587cc416c43399b564f4a983297879c055715b3f714fd96555b274d",
    "helperImports": [],
    "directComponentImports": [
      "slider",
      "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/slider.json",
    "registryUrl": "https://tidalui.com/r/slider.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/slider.json",
      "purpose": "component",
      "command": "npx shadcn@latest add https://tidalui.com/r/slider.json",
      "registryUrl": "https://tidalui.com/r/slider.json",
      "access": "free",
      "sourceDelivery": "public-registry",
      "requiresAuthorization": false
    },
    {
      "order": 2,
      "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/slider.tsx",
    "exports": [
      "TidalButton",
      "TidalSlider",
      "TidalSliderDigits",
      "TidalSliderValue"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/slider.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-slider@1.5.0",
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [
      "https://tidalui.com/r/tidal-button.json"
    ],
    "installClosure": [
      "slider",
      "tidal-button"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/slider.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/slider.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/slider-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useEffect, useLayoutEffect, useRef, useState, type CSSProperties } from \"react\";\n\nimport { ArrowUpRight, Check, RotateCcw } from \"lucide-react\";\n\nimport { TidalSlider, TidalSliderDigits, type TidalSliderValue } from \"./components/ui/slider\";\n\nimport { TidalButton } from \"./components/ui/tidal-button\";\n\nimport \"./components/ui/slider.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .slider-specimen {\\n  width: 100%;\\n  max-width: 720px;\\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 2px 3px #00000004,\\n    0 18px 35px -30px #00000040;\\n}\\n.tidal-scope .slider-specimen > h3 {\\n  font-size: 29px;\\n  font-weight: 500;\\n  line-height: 1.15;\\n  letter-spacing: -1.1px;\\n  margin: 15px 0 24px;\\n}\\n.tidal-scope .slider-specimen > h3 em {\\n  font:\\n    italic 37px/1.15 \\\"Instrument Serif\\\",\\n    Georgia,\\n    serif;\\n  letter-spacing: -0.8px;\\n}\\n.tidal-scope .slider-demo-stage {\\n  padding: 7px;\\n  margin: 0 -7px;\\n  overflow: hidden;\\n  transition: height 420ms var(--t-ease-out);\\n}\\n.tidal-scope .slider-demo-content {\\n  display: flow-root;\\n}\\n.tidal-scope .slider-demo-layout {\\n  display: grid;\\n  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);\\n  gap: 30px;\\n  align-items: center;\\n}\\n.tidal-scope .slider-demo-clock {\\n  position: relative;\\n  min-width: 0;\\n  border-radius: 12px;\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n  padding: 18px;\\n  box-shadow:\\n    inset 0 1px 0 #ffffff12,\\n    0 12px 18px -12px #0000004a;\\n  animation: slider-scene-enter 620ms var(--t-ease-out) both;\\n}\\n.tidal-scope .slider-demo-clock-head {\\n  display: flex;\\n  justify-content: space-between;\\n  gap: 8px;\\n  font-size: 11px;\\n  letter-spacing: 1.25px;\\n  opacity: 0.7;\\n}\\n.tidal-scope .slider-demo-instrument {\\n  position: relative;\\n  width: 100%;\\n  max-width: 230px;\\n  aspect-ratio: 1;\\n  margin: 8px auto -7px;\\n}\\n.tidal-scope .slider-demo-instrument svg {\\n  display: block;\\n  width: 100%;\\n  height: 100%;\\n  overflow: visible;\\n}\\n.tidal-scope .slider-clock-track,\\n.tidal-scope .slider-clock-arc {\\n  fill: none;\\n  stroke: currentColor;\\n  stroke-width: 8;\\n  stroke-linecap: round;\\n}\\n.tidal-scope .slider-clock-track {\\n  opacity: 0.18;\\n}\\n.tidal-scope .slider-clock-arc {\\n  transition:\\n    stroke-dasharray 420ms var(--t-ease-out),\\n    stroke-dashoffset 420ms var(--t-ease-out);\\n}\\n.tidal-scope .slider-clock-tick {\\n  stroke: currentColor;\\n  stroke-width: 1;\\n  opacity: 0.3;\\n}\\n.tidal-scope .slider-clock-tick[data-major] {\\n  opacity: 0.65;\\n}\\n.tidal-scope .slider-clock-hand {\\n  transform-origin: 110px 110px;\\n  transition: transform 420ms var(--t-ease-out);\\n}\\n.tidal-scope .slider-clock-hand circle:first-child {\\n  fill: var(--t-surface);\\n}\\n.tidal-scope .slider-clock-hand circle:last-child {\\n  fill: var(--t-ink);\\n}\\n.tidal-scope .slider-demo-clock-value {\\n  position: absolute;\\n  inset: 0;\\n  display: flex;\\n  flex-direction: column;\\n  align-items: center;\\n  justify-content: center;\\n  gap: 9px;\\n  pointer-events: none;\\n}\\n.tidal-scope .slider-demo-clock-value > span[aria-hidden] {\\n  display: flex;\\n  gap: 4px;\\n  align-items: baseline;\\n  font-size: 46px;\\n  line-height: 1.2;\\n  font-weight: 500;\\n  letter-spacing: -2px;\\n}\\n.tidal-scope .slider-demo-clock-value small {\\n  font-size: 18px;\\n  font-weight: 400;\\n  letter-spacing: 0;\\n  opacity: 0.6;\\n}\\n.tidal-scope .slider-demo-clock-value > span:last-child {\\n  font-size: 11px;\\n  letter-spacing: 1.4px;\\n  opacity: 0.7;\\n}\\n.tidal-scope .slider-demo-clock-limits {\\n  position: absolute;\\n  left: 15%;\\n  right: 15%;\\n  bottom: 21%;\\n  display: flex;\\n  justify-content: space-between;\\n  font-size: 11px;\\n  opacity: 0.55;\\n  font-variant-numeric: tabular-nums;\\n}\\n.tidal-scope .slider-demo-summary {\\n  display: flex;\\n  justify-content: space-between;\\n  gap: 8px;\\n  font-size: 11px;\\n  font-variant-numeric: tabular-nums;\\n  padding: 11px 0 9px;\\n  border-top: 1px solid #80808055;\\n}\\n.tidal-scope .slider-demo-break-rail {\\n  display: flex;\\n  gap: 3px;\\n  height: 3px;\\n  overflow: hidden;\\n  border-radius: 9px;\\n}\\n.tidal-scope .slider-demo-break-rail span {\\n  display: block;\\n  background: currentColor;\\n  transition: width 420ms var(--t-ease-out);\\n}\\n.tidal-scope .slider-demo-break-rail span:last-child {\\n  opacity: 0.3;\\n}\\n.tidal-scope .slider-demo-clock > p {\\n  font-size: 11px;\\n  line-height: 1.6;\\n  opacity: 0.65;\\n  margin: 9px 0 0;\\n}\\n.tidal-scope .slider-demo-layout form {\\n  min-width: 0;\\n}\\n.tidal-scope .slider-demo-controls-caption {\\n  display: block;\\n  font-size: 11px;\\n  letter-spacing: 1.3px;\\n  color: var(--t-muted);\\n  margin-bottom: 25px;\\n}\\n.tidal-scope\\n  .slider-demo-layout\\n  form\\n  > .tidal-slider-field\\n  + .tidal-slider-field {\\n  margin-top: 25px;\\n}\\n.tidal-scope .slider-demo-actions {\\n  display: flex;\\n  gap: 8px;\\n  margin-top: 25px;\\n}\\n.tidal-scope .slider-demo-actions .tidal-button {\\n  flex: 1;\\n  min-width: 0;\\n  font-size: 11px;\\n  padding: 0 10px;\\n  outline-offset: -5px;\\n}\\n.tidal-scope .slider-demo-actions .tidal-button:focus-visible {\\n  outline-color: currentColor;\\n}\\n.tidal-scope .slider-demo-status {\\n  display: block;\\n  font-size: 11px;\\n  line-height: 1.5;\\n  margin-top: 10px;\\n  color: var(--t-muted);\\n}\\n.tidal-scope .slider-demo-note {\\n  font-size: 11px;\\n  color: var(--t-muted);\\n  line-height: 1.65;\\n  margin: 22px 0 0;\\n}\\n.tidal-scope .slider-demo-complete {\\n  text-align: center;\\n  padding: 16px 5px 22px;\\n  animation: slider-scene-enter 420ms var(--t-ease-out) both;\\n}\\n.tidal-scope .slider-demo-complete > span {\\n  display: flex;\\n  width: 44px;\\n  height: 44px;\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n  border-radius: 50%;\\n  align-items: center;\\n  justify-content: center;\\n  margin: 0 auto 15px;\\n}\\n.tidal-scope .slider-demo-complete h4 {\\n  font-size: 22px;\\n  font-weight: 500;\\n  letter-spacing: -0.7px;\\n  outline-offset: -5px;\\n}\\n.tidal-scope .slider-demo-complete p {\\n  font-size: 11px;\\n  color: var(--t-muted);\\n  margin-top: 9px;\\n}\\n.tidal-scope .slider-specimen[data-phase=\\\"saved\\\"] .slider-demo-layout {\\n  grid-template-columns: minmax(0, 1fr);\\n}\\n.tidal-scope .slider-specimen[data-phase=\\\"saved\\\"] .slider-demo-clock {\\n  max-width: 290px;\\n  width: 100%;\\n  margin-inline: auto;\\n}\\n.tidal-scope .slider-demo-saved-actions {\\n  justify-content: center;\\n}\\n.tidal-scope .slider-demo-saved-actions .tidal-button {\\n  flex: 0 1 auto;\\n  padding: 0 16px;\\n}\\n.tidal-scope .slider-demo-saved-actions .tidal-button:last-child {\\n  width: 44px;\\n  padding: 0;\\n}\\n.tidal-scope .slider-demo-sr {\\n  position: absolute;\\n  width: 1px;\\n  height: 1px;\\n  padding: 0;\\n  margin: -1px;\\n  overflow: hidden;\\n  clip-path: inset(50%);\\n  white-space: nowrap;\\n  border: 0;\\n}\\n@keyframes slider-scene-enter {\\n  from {\\n    opacity: 0;\\n    transform: translateY(8px);\\n  }\\n  to {\\n    opacity: 1;\\n    transform: translateY(0);\\n  }\\n}\\n@media (max-width: 600px) {\\n  .tidal-scope .slider-specimen {\\n    padding: 18px;\\n  }\\n  .tidal-scope .slider-specimen > h3 {\\n    font-size: 25px;\\n    margin-bottom: 19px;\\n  }\\n  .tidal-scope .slider-specimen > h3 em {\\n    font-size: 32px;\\n  }\\n  .tidal-scope .slider-demo-layout {\\n    grid-template-columns: 1fr;\\n    gap: 20px;\\n  }\\n  .tidal-scope .slider-demo-clock {\\n    padding: 14px;\\n  }\\n  .tidal-scope .slider-demo-instrument {\\n    max-width: 174px;\\n    margin: 0 auto -7px;\\n  }\\n  .tidal-scope .slider-demo-clock-value > span[aria-hidden] {\\n    font-size: 39px;\\n  }\\n  .tidal-scope .slider-demo-controls-caption {\\n    display: none;\\n  }\\n  .tidal-scope\\n    .slider-demo-layout\\n    form\\n    > .tidal-slider-field\\n    + .tidal-slider-field {\\n    margin-top: 14px;\\n  }\\n  .tidal-scope .slider-demo-actions {\\n    margin-top: 15px;\\n  }\\n  .tidal-scope .slider-demo-note {\\n    font-size: 11px;\\n    margin-top: 16px;\\n  }\\n}\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .slider-specimen * {\\n    transition: none !important;\\n    animation: none !important;\\n  }\\n  .tidal-scope .slider-demo-clock,\\n  .tidal-scope .slider-demo-complete {\\n    transform: none;\\n  }\\n}\\n\\n.tidal-scope .slider-demo-clock > p {\\n  color: inherit;\\n}\\n@media (max-width: 600px) {\\n  .tidal-scope .slider-demo-clock {\\n    display: grid;\\n    grid-template-columns: 124px minmax(0, 1fr);\\n    gap: 7px 13px;\\n    align-items: center;\\n  }\\n  .tidal-scope .slider-demo-clock-head {\\n    grid-column: 1/-1;\\n    margin-bottom: 3px;\\n  }\\n  .tidal-scope .slider-demo-instrument {\\n    grid-row: 2/5;\\n    width: 124px;\\n    max-width: none;\\n    margin: 0;\\n  }\\n  .tidal-scope .slider-demo-summary {\\n    grid-column: 2;\\n    display: flex;\\n    flex-direction: column;\\n    justify-content: center;\\n    border: 0;\\n    gap: 5px;\\n    font-size: 11px;\\n    padding: 0;\\n  }\\n  .tidal-scope .slider-demo-break-rail {\\n    grid-column: 2;\\n  }\\n  .tidal-scope .slider-demo-clock > p {\\n    grid-column: 2;\\n    font-size: 11px;\\n    margin: 0;\\n  }\\n  .tidal-scope .slider-demo-clock-value > span[aria-hidden] {\\n    font-size: 26px;\\n    letter-spacing: -0.5px;\\n  }\\n  .tidal-scope .slider-demo-clock-value small {\\n    font-size: 12px;\\n  }\\n  .tidal-scope .slider-demo-clock-value > span:last-child {\\n    font-size: 11px;\\n    letter-spacing: 0.5px;\\n  }\\n}\\n\\n@media (max-width: 600px) {\\n  .tidal-scope .slider-specimen {\\n    padding: 16px;\\n  }\\n  .tidal-scope .slider-specimen > h3 {\\n    margin-bottom: 15px;\\n  }\\n  .tidal-scope .slider-demo-layout {\\n    gap: 16px;\\n  }\\n  .tidal-scope .slider-demo-clock {\\n    grid-template-columns: 116px minmax(0, 1fr);\\n  }\\n  .tidal-scope .slider-demo-instrument {\\n    width: 116px;\\n  }\\n  .tidal-scope\\n    .slider-demo-layout\\n    form\\n    > .tidal-slider-field\\n    + .tidal-slider-field {\\n    margin-top: 10px;\\n  }\\n  .tidal-scope .slider-demo-actions {\\n    margin-top: 12px;\\n  }\\n}\";\n\nfunction time(value: number) {\n  const h = Math.floor(value),\n    m = Math.round((value - h) * 60);\n  return `${String(h).padStart(2, \"0\")}:${String(m).padStart(2, \"0\")}`;\n}\n\nexport function SliderDemo() {\n  const [window, setWindow] = useState<TidalSliderValue>([9, 15]),\n    [breaks, setBreaks] = useState<TidalSliderValue>([30]);\n  const [phase, setPhase] = useState<\"editing\" | \"saving\" | \"saved\">(\"editing\"),\n    [height, setHeight] = useState<number>();\n  const content = useRef<HTMLDivElement>(null),\n    range = useRef<HTMLSpanElement>(null),\n    title = useRef<HTMLHeadingElement>(null),\n    restore = useRef(false),\n    timer = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n  const focusOwner = useRef<HTMLElement | null>(null);\n  const start = window[0],\n    end = window[1] ?? window[0],\n    duration = end - start,\n    minutes = Math.max(0, duration * 60 - breaks[0]);\n  const circumference = 2 * Math.PI * 82,\n    trackLength = (circumference * 2) / 3,\n    offset = ((start - 8) / 10) * trackLength,\n    length = (duration / 10) * trackLength;\n  const focusTime = `${Math.floor(minutes / 60)}:${String(minutes % 60).padStart(2, \"0\")}`;\n  useEffect(() => () => clearTimeout(timer.current), []);\n  useLayoutEffect(() => {\n    const active = document.activeElement;\n    const canMoveFocus =\n      active === document.body || active === focusOwner.current;\n    if (phase === \"saved\" && canMoveFocus) {\n      title.current?.focus({ preventScroll: true });\n      focusOwner.current = null;\n    } else if (phase === \"editing\" && restore.current) {\n      restore.current = false;\n      const thumb =\n        range.current?.querySelector<HTMLElement>('[role=\"slider\"]');\n      if (canMoveFocus && thumb?.getClientRects().length)\n        thumb.focus({ preventScroll: true });\n      else if (canMoveFocus) {\n        const previousFocus = document.activeElement;\n        focusOwner.current = null;\n        const frame = requestAnimationFrame(() => {\n          if (document.activeElement === previousFocus)\n            range.current\n              ?.querySelector<HTMLElement>('[role=\"slider\"]')\n              ?.focus({ preventScroll: true });\n        });\n        return () => cancelAnimationFrame(frame);\n      }\n      focusOwner.current = null;\n    }\n  }, [phase]);\n  useLayoutEffect(() => {\n    const node = content.current;\n    if (!node) return;\n    const measure = () => {\n      const css = getComputedStyle(node.parentElement!);\n      setHeight(\n        node.offsetHeight +\n          Number.parseFloat(css.paddingTop) +\n          Number.parseFloat(css.paddingBottom),\n      );\n    };\n    measure();\n    const ro = new ResizeObserver(measure);\n    ro.observe(node);\n    return () => ro.disconnect();\n  }, []);\n  function edit() {\n    clearTimeout(timer.current);\n    focusOwner.current =\n      document.activeElement instanceof HTMLElement\n        ? document.activeElement\n        : null;\n    restore.current = true;\n    setPhase(\"editing\");\n    if (phase === \"editing\") {\n      restore.current = false;\n      range.current\n        ?.querySelector<HTMLElement>('[role=\"slider\"]')\n        ?.focus({ preventScroll: true });\n    }\n  }\n  function reset() {\n    setWindow([9, 15]);\n    setBreaks([30]);\n    edit();\n  }\n  return (\n    <div className=\"slider-specimen\" data-phase={phase}>\n      <div className=\"slider-demo-stage\" style={{ height }}>\n        <div ref={content} className=\"slider-demo-content\">\n          {phase === \"saved\" ? (\n            <div className=\"slider-demo-complete\">\n              <span aria-hidden=\"true\">\n                <Check size={20} />\n              </span>\n              <h4 ref={title} tabIndex={-1}>\n                Focus session saved\n              </h4>\n              <p>Kept in this sample only. Your calendar is unchanged.</p>\n            </div>\n          ) : null}\n          <div className=\"slider-demo-layout\">\n            <section\n              className=\"slider-demo-clock\"\n              aria-label=\"Sample focus plan\"\n              style={{ \"--slider-focus-minutes\": minutes } as CSSProperties}\n            >\n              <div className=\"slider-demo-clock-head\">\n                <span>THE FOCUS WINDOW</span>\n                <span>D / 028</span>\n              </div>\n              <div className=\"slider-demo-instrument\">\n                <svg viewBox=\"0 0 220 220\" aria-hidden=\"true\">\n                  <circle\n                    className=\"slider-clock-track\"\n                    cx=\"110\"\n                    cy=\"110\"\n                    r=\"82\"\n                    strokeDasharray={`${trackLength} ${circumference}`}\n                    transform=\"rotate(150 110 110)\"\n                  />\n                  <circle\n                    className=\"slider-clock-arc\"\n                    cx=\"110\"\n                    cy=\"110\"\n                    r=\"82\"\n                    strokeDasharray={`${length} ${circumference}`}\n                    strokeDashoffset={-offset}\n                    transform=\"rotate(150 110 110)\"\n                  />\n                  {Array.from({ length: 21 }, (_, i) => {\n                    const angle = ((150 + i * 12) * Math.PI) / 180;\n                    return (\n                      <line\n                        key={i}\n                        className=\"slider-clock-tick\"\n                        data-major={i % 4 === 0 || undefined}\n                        x1={110 + Math.cos(angle) * 98}\n                        y1={110 + Math.sin(angle) * 98}\n                        x2={110 + Math.cos(angle) * (i % 4 === 0 ? 104 : 101)}\n                        y2={110 + Math.sin(angle) * (i % 4 === 0 ? 104 : 101)}\n                      />\n                    );\n                  })}\n                  {[start, end].map((v, i) => {\n                    return (\n                      <g\n                        key={i}\n                        className=\"slider-clock-hand\"\n                        style={{\n                          transform: `rotate(${150 + ((v - 8) / 10) * 240}deg)`,\n                        }}\n                      >\n                        <circle cx=\"192\" cy=\"110\" r=\"6\" />\n                        <circle cx=\"192\" cy=\"110\" r=\"2\" />\n                      </g>\n                    );\n                  })}\n                </svg>\n                <div className=\"slider-demo-clock-value\">\n                  <span className=\"slider-demo-sr\">\n                    {Math.floor(minutes / 60)}{\" \"}\n                    {Math.floor(minutes / 60) === 1 ? \"hour\" : \"hours\"} and{\" \"}\n                    {minutes % 60} {minutes % 60 === 1 ? \"minute\" : \"minutes\"}{\" \"}\n                    of sample focus\n                  </span>\n                  <span aria-hidden=\"true\">\n                    <TidalSliderDigits text={focusTime} />\n                    <small>h</small>\n                  </span>\n                  <span>FOCUS · HOURS : MINUTES</span>\n                </div>\n                <div className=\"slider-demo-clock-limits\" aria-hidden=\"true\">\n                  <span>08</span>\n                  <span>18</span>\n                </div>\n              </div>\n              <div className=\"slider-demo-summary\">\n                <span>\n                  {time(start)} – {time(end)}\n                </span>\n                <span>{minutes} min focus</span>\n              </div>\n              <div className=\"slider-demo-break-rail\" aria-hidden=\"true\">\n                <span\n                  style={{ width: `${(minutes / (duration * 60)) * 100}%` }}\n                />\n                <span\n                  style={{ width: `${(breaks[0] / (duration * 60)) * 100}%` }}\n                />\n              </div>\n              <p>{breaks[0]} minutes left for breaks.</p>\n            </section>\n            {phase !== \"saved\" ? (\n              <form\n                onSubmit={(event) => {\n                  event.preventDefault();\n                  focusOwner.current =\n                    (event.nativeEvent as SubmitEvent).submitter instanceof\n                    HTMLElement\n                      ? (event.nativeEvent as SubmitEvent).submitter\n                      : document.activeElement instanceof HTMLElement\n                        ? document.activeElement\n                        : null;\n                  setPhase(\"saving\");\n                  timer.current = setTimeout(() => setPhase(\"saved\"), 550);\n                }}\n              >\n                <span className=\"slider-demo-controls-caption\">\n                  MAKE ROOM FOR YOUR BEST WORK\n                </span>\n                <TidalSlider\n                  ref={range}\n                  label=\"Focus window\"\n                  thumbLabels={[\"Start time\", \"End time\"]}\n                  value={window}\n                  onValueChange={setWindow}\n                  min={8}\n                  max={18}\n                  step={0.5}\n                  minStepsBetweenThumbs={2}\n                  formatValue={time}\n                  name=\"focus-window\"\n                  disabled={phase === \"saving\"}\n                  marks={[\n                    { value: 8, label: \"08\" },\n                    { value: 10, label: \"10\" },\n                    { value: 12, label: \"12\" },\n                    { value: 14, label: \"14\" },\n                    { value: 16, label: \"16\" },\n                    { value: 18, label: \"18\" },\n                  ]}\n                  description=\"Choose one hour or more. Half-hour steps.\"\n                />\n                <TidalSlider\n                  label=\"Break budget\"\n                  value={breaks}\n                  onValueChange={setBreaks}\n                  min={0}\n                  max={60}\n                  step={5}\n                  formatValue={(v) => `${v} min`}\n                  name=\"break-minutes\"\n                  disabled={phase === \"saving\"}\n                  description=\"Taken out of your selected window.\"\n                />\n                <div className=\"slider-demo-actions\">\n                  <TidalButton\n                    type=\"button\"\n                    variant=\"secondary\"\n                    onClick={phase === \"saving\" ? edit : reset}\n                  >\n                    {phase === \"saving\" ? \"Cancel sample\" : \"Reset sample\"}\n                  </TidalButton>\n                  <TidalButton type=\"submit\" loading={phase === \"saving\"}>\n                    {phase === \"saving\" ? \"Setting space\" : \"Set sample\"}\n                    {phase === \"editing\" ? <ArrowUpRight size={13} /> : null}\n                  </TidalButton>\n                </div>\n                {phase === \"saving\" ? (\n                  <span className=\"slider-demo-status\" role=\"status\">\n                    Setting this local sample…\n                  </span>\n                ) : null}\n              </form>\n            ) : null}\n          </div>\n          {phase === \"saved\" ? (\n            <div className=\"slider-demo-actions slider-demo-saved-actions\">\n              <TidalButton variant=\"secondary\" onClick={edit}>\n                Adjust sample\n              </TidalButton>\n              <TidalButton\n                variant=\"secondary\"\n                onClick={reset}\n                aria-label=\"Reset original plan\"\n              >\n                <RotateCcw size={14} />\n              </TidalButton>\n            </div>\n          ) : null}\n        </div>\n      </div>\n      <p className=\"slider-demo-note\">\n        Fictional day plan. No calendar changes, reminders or storage.\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      <SliderDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/slider.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "phase",
      "type": "inferred-from-existing-demo",
      "initial": "\"editing\"",
      "setter": "setPhase",
      "proposalCanBeRejected": false
    },
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "[9, 15]",
      "setter": "setWindow",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onSubmit",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onValueChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": true,
    "names": [
      "focus-window",
      "break-minutes"
    ],
    "expectedFormData": {
      "focus-window": "fixture value",
      "break-minutes": "fixture value"
    },
    "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": []
}
