{
  "id": "reaction-bar",
  "name": "ReactionBar",
  "level": "molecule",
  "status": "experimental",
  "purpose": "Quick emoji reactions with their counts; the reader's own stands out.",
  "description": "Controlled reaction bar. Pass `reactions` (key + glyph + label + count), the `active` key, and `onToggle`. Each option is a Button atom — active → intent primary solid, idle → neutral ghost. The consumer owns toggle semantics (add / replace / remove) and optimistic state. Patterns consulted: Patterns/Visual Priority · StatusHierarchy.",
  "role": "action",
  "import": "@rrios-forge/ui/molecules/reaction-bar",
  "exports": [
    "ReactionBar",
    "reactionBarVariants",
    "REACTION_BAR_SIZES"
  ],
  "source": "packages/ui/src/molecules/reaction-bar",
  "axes": [
    {
      "axis": "size",
      "part": null,
      "values": [
        "sm",
        "md"
      ],
      "default": "sm",
      "meaning": "Ergonomic scale, in three families (control, text, container)."
    }
  ],
  "needs": [
    {
      "need": "Chat message / reactions",
      "answer": "`ChatBubble` / `ReactionBar`"
    }
  ],
  "patterns": [],
  "a11yExceptions": [],
  "decisions": [],
  "stories": [
    {
      "name": "Playground",
      "id": "components-molecules-reactionbar--playground",
      "interaction": false,
      "snapshots": [
        "dark",
        "high-contrast",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-reactionbar--playground",
      "frame": "/iframe.html?id=components-molecules-reactionbar--playground&viewMode=story"
    },
    {
      "name": "Nothing selected",
      "id": "components-molecules-reactionbar--no-active",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-reactionbar--no-active",
      "frame": "/iframe.html?id=components-molecules-reactionbar--no-active&viewMode=story"
    },
    {
      "name": "Disabled",
      "id": "components-molecules-reactionbar--disabled",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-reactionbar--disabled",
      "frame": "/iframe.html?id=components-molecules-reactionbar--disabled&viewMode=story"
    },
    {
      "name": "Multi-active (array)",
      "id": "components-molecules-reactionbar--multi-active",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-reactionbar--multi-active",
      "frame": "/iframe.html?id=components-molecules-reactionbar--multi-active&viewMode=story"
    }
  ],
  "storyFile": "tooling/storybook/stories/components/molecules/reaction-bar.stories.tsx"
}
