{
  "id": "search-field",
  "name": "SearchField",
  "level": "molecule",
  "status": "stable",
  "purpose": "A search box that can be cleared in one press.",
  "description": "Search input pattern composed from InputGroup. Pre-wired with a search icon, optional spinner (loading=true) and optional clear button. role=search on the wrapper, type=search on the input. Placeholder never replaces a label — pass aria-label or wrap in Field. Patterns consulted: Patterns/Forms · SearchAndSelect, Patterns/Feedback · LoadingFeedback.",
  "role": "input",
  "import": "@rrios-forge/ui/molecules/search-field",
  "exports": [
    "SearchField",
    "SEARCH_FIELD_SIZES",
    "searchFieldVariants"
  ],
  "source": "packages/ui/src/molecules/search-field",
  "axes": [
    {
      "axis": "size",
      "part": null,
      "values": [
        "sm",
        "md",
        "lg"
      ],
      "default": "md",
      "meaning": "Ergonomic scale, in three families (control, text, container)."
    }
  ],
  "needs": [
    {
      "need": "Tabs / select / autocomplete",
      "answer": "`Tabs` / `Select` / `Combobox` or `SearchField`"
    }
  ],
  "patterns": [],
  "a11yExceptions": [],
  "decisions": [],
  "stories": [
    {
      "name": "Playground",
      "id": "components-molecules-searchfield--playground",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-searchfield--playground",
      "frame": "/iframe.html?id=components-molecules-searchfield--playground&viewMode=story"
    },
    {
      "name": "Loading",
      "id": "components-molecules-searchfield--loading",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-searchfield--loading",
      "frame": "/iframe.html?id=components-molecules-searchfield--loading&viewMode=story"
    },
    {
      "name": "Clearable",
      "id": "components-molecules-searchfield--clearable",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-searchfield--clearable",
      "frame": "/iframe.html?id=components-molecules-searchfield--clearable&viewMode=story"
    },
    {
      "name": "Disabled",
      "id": "components-molecules-searchfield--disabled",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-searchfield--disabled",
      "frame": "/iframe.html?id=components-molecules-searchfield--disabled&viewMode=story"
    },
    {
      "name": "In toolbar",
      "id": "components-molecules-searchfield--in-toolbar",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-searchfield--in-toolbar",
      "frame": "/iframe.html?id=components-molecules-searchfield--in-toolbar&viewMode=story"
    },
    {
      "name": "With results hint",
      "id": "components-molecules-searchfield--with-results-hint",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-molecules-searchfield--with-results-hint",
      "frame": "/iframe.html?id=components-molecules-searchfield--with-results-hint&viewMode=story"
    }
  ],
  "storyFile": "tooling/storybook/stories/components/molecules/search-field.stories.tsx"
}
