{
  "id": "split-action",
  "name": "SplitAction",
  "level": "molecule",
  "status": "stable",
  "purpose": "A main action with a menu of related ones beside it.",
  "description": "Two independent buttons (main + menu trigger) attached visually. Each is a separate focus stop. Destructive split actions reserve danger for the main button and the matching menu items — never for the menu trigger alone. Patterns consulted: Patterns/Visual Priority · ActionHierarchy, Patterns/Overlays · DropdownVsDialog.",
  "role": "action",
  "import": "@rrios-forge/ui/molecules/split-action",
  "exports": [
    "SplitAction",
    "SPLIT_ACTION_EMPHASES",
    "SPLIT_ACTION_INTENTS",
    "SPLIT_ACTION_SIZES",
    "splitActionVariants"
  ],
  "source": "packages/ui/src/molecules/split-action",
  "axes": [
    {
      "axis": "size",
      "part": null,
      "values": [
        "sm",
        "md",
        "lg"
      ],
      "default": "md",
      "meaning": "Ergonomic scale, in three families (control, text, container)."
    }
  ],
  "needs": [
    {
      "need": "Toolbar / split action",
      "answer": "`Toolbar` or `ActionGroup` / `SplitAction`"
    }
  ],
  "patterns": [],
  "a11yExceptions": [],
  "decisions": [
    {
      "id": "ADR-030",
      "title": "Axis vocabulary: one name, one meaning"
    }
  ],
  "stories": [
    {
      "name": "Playground",
      "id": "components-molecules-splitaction--playground",
      "interaction": true,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-splitaction--playground",
      "frame": "/iframe.html?id=components-molecules-splitaction--playground&viewMode=story"
    },
    {
      "name": "Intents",
      "id": "components-molecules-splitaction--intents",
      "interaction": false,
      "snapshots": [
        "dark",
        "high-contrast",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-splitaction--intents",
      "frame": "/iframe.html?id=components-molecules-splitaction--intents&viewMode=story"
    },
    {
      "name": "Emphases",
      "id": "components-molecules-splitaction--emphases",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-splitaction--emphases",
      "frame": "/iframe.html?id=components-molecules-splitaction--emphases&viewMode=story"
    },
    {
      "name": "Sizes",
      "id": "components-molecules-splitaction--sizes",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-splitaction--sizes",
      "frame": "/iframe.html?id=components-molecules-splitaction--sizes&viewMode=story"
    },
    {
      "name": "With danger menu",
      "id": "components-molecules-splitaction--with-danger-menu",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-splitaction--with-danger-menu",
      "frame": "/iframe.html?id=components-molecules-splitaction--with-danger-menu&viewMode=story"
    },
    {
      "name": "In toolbar",
      "id": "components-molecules-splitaction--in-toolbar",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-splitaction--in-toolbar",
      "frame": "/iframe.html?id=components-molecules-splitaction--in-toolbar&viewMode=story"
    }
  ],
  "storyFile": "tooling/storybook/stories/components/molecules/split-action.stories.tsx"
}
