{
  "id": "segmented-control",
  "name": "SegmentedControl",
  "level": "molecule",
  "status": "stable",
  "purpose": "One of a few values, all in view; the thumb slides to the choice.",
  "description": "Pick one of two to five values, all in view (ADR-037). A radio group on Radix: arrow keys move and select, Tab leaves. One thumb travels to the chosen option on a pointer choice and jumps on a keyboard one. Use Tabs when the choice swaps a panel; a Select past five options.",
  "role": "input",
  "import": "@rrios-forge/ui/molecules/segmented-control",
  "exports": [
    "SegmentedControl",
    "SEGMENTED_CONTROL_SIZES",
    "segmentedControlItemVariants",
    "segmentedControlVariants"
  ],
  "source": "packages/ui/src/molecules/segmented-control",
  "axes": [
    {
      "axis": "size",
      "part": null,
      "values": [
        "sm",
        "md"
      ],
      "default": "md",
      "meaning": "Ergonomic scale, in three families (control, text, container)."
    },
    {
      "axis": "fill",
      "part": null,
      "values": [
        "true",
        "false"
      ],
      "default": "false",
      "meaning": "Card grows to its row's tallest sibling (ADR-012)."
    }
  ],
  "needs": [
    {
      "need": "One of a few values, all in view (range, view mode)",
      "answer": "`SegmentedControl` (two to five options; more → `Select`)"
    }
  ],
  "patterns": [],
  "a11yExceptions": [],
  "decisions": [
    {
      "id": "ADR-037",
      "title": "Continuity motion: a decelerating curve, a travelling indicator, view transitions and the SegmentedControl"
    }
  ],
  "stories": [
    {
      "name": "Playground",
      "id": "components-molecules-segmentedcontrol--playground",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-segmentedcontrol--playground",
      "frame": "/iframe.html?id=components-molecules-segmentedcontrol--playground&viewMode=story"
    },
    {
      "name": "Sizes",
      "id": "components-molecules-segmentedcontrol--sizes",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-segmentedcontrol--sizes",
      "frame": "/iframe.html?id=components-molecules-segmentedcontrol--sizes&viewMode=story"
    },
    {
      "name": "Fill",
      "id": "components-molecules-segmentedcontrol--fill",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-segmentedcontrol--fill",
      "frame": "/iframe.html?id=components-molecules-segmentedcontrol--fill&viewMode=story"
    },
    {
      "name": "On a pane",
      "id": "components-molecules-segmentedcontrol--on-a-pane",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-segmentedcontrol--on-a-pane",
      "frame": "/iframe.html?id=components-molecules-segmentedcontrol--on-a-pane&viewMode=story"
    },
    {
      "name": "Disabled",
      "id": "components-molecules-segmentedcontrol--disabled",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-segmentedcontrol--disabled",
      "frame": "/iframe.html?id=components-molecules-segmentedcontrol--disabled&viewMode=story"
    },
    {
      "name": "Keyboard",
      "id": "components-molecules-segmentedcontrol--keyboard",
      "interaction": true,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-segmentedcontrol--keyboard",
      "frame": "/iframe.html?id=components-molecules-segmentedcontrol--keyboard&viewMode=story"
    }
  ],
  "storyFile": "tooling/storybook/stories/components/molecules/segmented-control.stories.tsx"
}
