{
  "format": "shadcn-figma-stories/1",
  "scope": "Static native design variants and documented examples; not executable interaction tests.",
  "source": {
    "path": "provenance://source/.figma-pool%2Fshadcn.fig",
    "sha256": "ccbe95f20f501389a322d0f6de2c90ca79126a33355f1b31e2b1dcc7c8e2b3d5",
    "page": "73:2899"
  },
  "stories": [
    {
      "id": "figma-2003-2312",
      "name": "Tab / Variant=Default, Selected=Off, State=Default, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2312",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2314",
      "name": "Tab / Variant=Default, Selected=Off, State=Hover, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2314",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2303",
      "name": "Tab / Variant=Default, Selected=Off, State=Focus, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2303",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2295",
      "name": "Tab / Variant=Default, Selected=Off, State=Disabled, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2295",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2292",
      "name": "Tab / Variant=Underline, Selected=Off, State=Default, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2292",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2288",
      "name": "Tab / Variant=Underline, Selected=Off, State=Hover, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2288",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2290",
      "name": "Tab / Variant=Underline, Selected=Off, State=Focus, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2290",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2291",
      "name": "Tab / Variant=Underline, Selected=Off, State=Disabled, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2291",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2318",
      "name": "Tab / Variant=Default, Selected=On, State=Default, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2318",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2315",
      "name": "Tab / Variant=Default, Selected=On, State=Hover, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2315",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2309",
      "name": "Tab / Variant=Default, Selected=On, State=Focus, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2309",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2306",
      "name": "Tab / Variant=Default, Selected=On, State=Disabled, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2306",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2308",
      "name": "Tab / Variant=Underline, Selected=On, State=Default, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2308",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2296",
      "name": "Tab / Variant=Underline, Selected=On, State=Hover, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2296",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2316",
      "name": "Tab / Variant=Underline, Selected=On, State=Focus, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2316",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2294",
      "name": "Tab / Variant=Underline, Selected=On, State=Disabled, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2294",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2310",
      "name": "Tab / Variant=Default, Selected=On, State=Default, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2310",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2307",
      "name": "Tab / Variant=Default, Selected=On, State=Hover, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2307",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2311",
      "name": "Tab / Variant=Default, Selected=On, State=Focus, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2311",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2313",
      "name": "Tab / Variant=Default, Selected=On, State=Disabled, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2313",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2300",
      "name": "Tab / Variant=Underline, Selected=On, State=Default, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2300",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2293",
      "name": "Tab / Variant=Underline, Selected=On, State=Hover, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2293",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2298",
      "name": "Tab / Variant=Underline, Selected=On, State=Focus, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2298",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2317",
      "name": "Tab / Variant=Underline, Selected=On, State=Disabled, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2317",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2305",
      "name": "Tab / Variant=Default, Selected=Off, State=Default, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2305",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2304",
      "name": "Tab / Variant=Default, Selected=Off, State=Hover, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2304",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2301",
      "name": "Tab / Variant=Default, Selected=Off, State=Focus, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2301",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2302",
      "name": "Tab / Variant=Default, Selected=Off, State=Disabled, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2302",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2289",
      "name": "Tab / Variant=Underline, Selected=Off, State=Default, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2289",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2287",
      "name": "Tab / Variant=Underline, Selected=Off, State=Hover, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2287",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2297",
      "name": "Tab / Variant=Underline, Selected=Off, State=Focus, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2297",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2003-2299",
      "name": "Tab / Variant=Underline, Selected=Off, State=Disabled, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2003:2299",
        "part": "2003:2319"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    }
  ],
  "contractCases": [
    {
      "id": "actual-source-selection",
      "expected": "Root value/defaultValue uses the primitive generic Tab.Value (including null; default implicit0). List defaults activateOnFocus=false and loopFocus=true; variant default|line only styles it. Trigger value identifies a matching Panel, disabled triggers cannot activate; keepMounted is explicit on Panels (the shown inactive-panel projection chooses it). Automatic tab/panel ID relations register in client effects and are not present in raw static server markup; the reference HTML shows the registered client state. User onValueChange(value,eventDetails) is cancellable. Automatic uncontrolled selection/fallback reasons initial/disabled/missing cannot be canceled and may yield null when no enabled tab remains. Controlled values never automatically fall back. Callback details include activationDirection. Tab focus and active panel are distinct in manual mode."
    },
    {
      "id": "keyboard-focus-versus-commit",
      "expected": "Tab enters the selected/enabled tab and then its panel. The source horizontal tablist uses Left/Right, Home/End to move focus, including source-focusable disabled triggers that cannot activate; default manual mode requires Enter/Space to activate. activateOnFocus=true also changes selection on arrow focus. Escape leaves selection unchanged. IMPORTANT pinned wrapper limitation: Root orientation is consumed for CSS/data attributes and not forwarded to TabsPrimitive.Root; primitive ARIA and keyboard behavior remain horizontal even when visual orientation=vertical. This reference chooses horizontal layout and makes the upstream discrepancy explicit."
    },
    {
      "id": "canceled-and-controlled-authority",
      "expected": "Candidate callback preserves exact source details; canceled request or controlled props do not autonomously change public value."
    },
    {
      "id": "native-instance-naming",
      "html": "accessibility.html"
    }
  ]
}
