{
  "tag": "ed-resize-observer",
  "kind": "component",
  "summary": "The Resize Observer component offers a thin, declarative interface to the [`ResizeObserver API`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver).",
  "status": "experimental",
  "since": "1.0",
  "docs": "https://test-apps.eurodata.de/a/eurodata-ui/docs/components/resize-observer/",
  "usage": "https://test-apps.eurodata.de/a/eurodata-ui/docs/components/resize-observer/usage/",
  "playwright": "getByTestId('…')",
  "dependencies": [],
  "use": [
    "Reacting when a panel or card changes size, such as switching a layout when a drawer is opened or the window is resized",
    "Recalculating a chart or an overflow menu when the space it sits in becomes wider or narrower"
  ],
  "notFor": [
    {
      "when": "Switching a layout by screen width only",
      "instead": "a CSS media or container query"
    },
    {
      "when": "Tracking whether an element is visible",
      "instead": "an [Intersection Observer](https://test-apps.eurodata.de/a/eurodata-ui/docs/components/intersection-observer)"
    }
  ],
  "rules": [],
  "api": {
    "attributes": [
      {
        "name": "disabled",
        "property": "disabled",
        "type": "boolean",
        "default": "false",
        "description": "Disables the observer."
      },
      {
        "name": "dir",
        "property": "dir",
        "type": "string"
      },
      {
        "name": "lang",
        "property": "lang",
        "type": "string"
      }
    ],
    "properties": [],
    "methods": [],
    "events": [
      {
        "name": "ed-resize",
        "react": "onEdResize",
        "type": "{ entries: ResizeObserverEntry[] }",
        "description": "Emitted when a watched element is resized. The event detail contains an `entries` array of [`ResizeObserverEntry`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry) objects."
      }
    ],
    "slots": [
      {
        "name": "",
        "description": "One or more elements to watch for resizing."
      }
    ],
    "cssProperties": [],
    "parts": [],
    "states": []
  },
  "import": "import '@eurodata/eurodata-ui/dist/components/resize-observer/resize-observer.js';",
  "react": {
    "component": "EdResizeObserver",
    "import": "import EdResizeObserver from '@eurodata/eurodata-ui/dist/react/resize-observer/index.js';"
  }
}
