{
  "id": "input-group",
  "name": "InputGroup",
  "level": "molecule",
  "status": "stable",
  "purpose": "A text input joined with a prefix, a suffix or a button.",
  "description": "Compound input wrapper. The group is the focusable surface (focus-within ring sits on the wrapper); the inner Input keeps its native semantics. size, invalid and disabled propagate via context. Prefix and suffix never replace a Label — wrap the InputGroup in a Field. Patterns consulted: Patterns/Forms · FieldAnatomy + SearchAndSelect, Patterns/Density & Growth · MetadataCompression.",
  "role": "input",
  "import": "@rrios-forge/ui/molecules/input-group",
  "exports": [
    "InputGroup",
    "InputGroupAction",
    "InputGroupIcon",
    "InputGroupInput",
    "InputGroupPrefix",
    "InputGroupSuffix",
    "INPUT_GROUP_AFFIX_PADDING",
    "INPUT_GROUP_LEADING_AFFIX_PADDING",
    "INPUT_GROUP_TRAILING_AFFIX_PADDING",
    "INPUT_GROUP_SIZES",
    "inputGroupVariants"
  ],
  "source": "packages/ui/src/molecules/input-group",
  "axes": [
    {
      "axis": "size",
      "part": null,
      "values": [
        "sm",
        "md",
        "lg"
      ],
      "default": "md",
      "meaning": "Ergonomic scale, in three families (control, text, container)."
    },
    {
      "axis": "invalid",
      "part": null,
      "values": [
        "true",
        "false"
      ],
      "default": "false",
      "meaning": "Fails validation: a danger edge, announced as invalid; pair it with an error message."
    },
    {
      "axis": "disabled",
      "part": null,
      "values": [
        "true",
        "false"
      ],
      "default": "false",
      "meaning": "Not available: dimmed, skipped by the keyboard, ignores the pointer."
    }
  ],
  "needs": [
    {
      "need": "Group of fields",
      "answer": "`FormSection` or `InputGroup`"
    }
  ],
  "patterns": [],
  "a11yExceptions": [],
  "decisions": [],
  "stories": [
    {
      "name": "Playground",
      "id": "components-molecules-inputgroup--playground",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-inputgroup--playground",
      "frame": "/iframe.html?id=components-molecules-inputgroup--playground&viewMode=story"
    },
    {
      "name": "With leading icon",
      "id": "components-molecules-inputgroup--with-leading-icon",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-inputgroup--with-leading-icon",
      "frame": "/iframe.html?id=components-molecules-inputgroup--with-leading-icon&viewMode=story"
    },
    {
      "name": "With prefix",
      "id": "components-molecules-inputgroup--with-prefix",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-inputgroup--with-prefix",
      "frame": "/iframe.html?id=components-molecules-inputgroup--with-prefix&viewMode=story"
    },
    {
      "name": "With suffix",
      "id": "components-molecules-inputgroup--with-suffix",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-inputgroup--with-suffix",
      "frame": "/iframe.html?id=components-molecules-inputgroup--with-suffix&viewMode=story"
    },
    {
      "name": "With action",
      "id": "components-molecules-inputgroup--with-action",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-inputgroup--with-action",
      "frame": "/iframe.html?id=components-molecules-inputgroup--with-action&viewMode=story"
    },
    {
      "name": "Invalid",
      "id": "components-molecules-inputgroup--invalid",
      "interaction": false,
      "snapshots": [
        "dark",
        "high-contrast",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-inputgroup--invalid",
      "frame": "/iframe.html?id=components-molecules-inputgroup--invalid&viewMode=story"
    },
    {
      "name": "Disabled",
      "id": "components-molecules-inputgroup--disabled",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-inputgroup--disabled",
      "frame": "/iframe.html?id=components-molecules-inputgroup--disabled&viewMode=story"
    },
    {
      "name": "In Field",
      "id": "components-molecules-inputgroup--in-field",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-inputgroup--in-field",
      "frame": "/iframe.html?id=components-molecules-inputgroup--in-field&viewMode=story"
    }
  ],
  "storyFile": "tooling/storybook/stories/components/molecules/input-group.stories.tsx"
}
