{
  "name": "popover",
  "componentName": "Popover",
  "displayName": "Popover",
  "regions": [
    {
      "name": "children",
      "displayName": "trigger",
      "description": "Element that triggers the popover when selected by the user.",
      "isDefault": true
    },
    {
      "name": "content",
      "description": "Content of the popover.",
      "isDefault": false,
      "displayName": "content"
    }
  ],
  "functions": [
    {
      "name": "dismiss",
      "description": "Dismisses the popover without focusing the trigger. Use only if an element other than the trigger needs to be focused after dismissing the popover.",
      "returnType": "void",
      "parameters": []
    },
    {
      "name": "focus",
      "description": "Sets focus on the popover's trigger and dismisses the popover if open.",
      "returnType": "void",
      "parameters": []
    }
  ],
  "properties": [
    {
      "name": "dismissAriaLabel",
      "type": "string",
      "optional": true,
      "description": "Adds an `aria-label` to the dismiss button for accessibility.",
      "i18nTag": true,
      "formattedType": "string"
    },
    {
      "name": "dismissButton",
      "type": "boolean",
      "optional": true,
      "description": "Determines whether the dismiss button is shown in the popover body.",
      "defaultValue": "true",
      "formattedType": "boolean"
    },
    {
      "name": "fixedWidth",
      "type": "boolean",
      "optional": true,
      "description": "Expands the popover body to its maximum width regardless of content.\nFor example, use it when you need to place a column layout in the popover content.",
      "defaultValue": "false",
      "formattedType": "boolean"
    },
    {
      "name": "header",
      "type": "string",
      "optional": true,
      "description": "Specifies optional header text for the popover.",
      "formattedType": "string"
    },
    {
      "name": "position",
      "type": "string",
      "inlineType": {
        "name": "PopoverProps.Position",
        "type": "union",
        "values": [
          "left",
          "top",
          "bottom",
          "right"
        ]
      },
      "optional": true,
      "description": "Determines where the popover is displayed when opened, relative to the trigger.\nIf the popover doesn't have enough space to open in this direction, it\nautomatically chooses a better direction based on available space.",
      "defaultValue": "'right'",
      "formattedType": "string"
    },
    {
      "name": "renderWithPortal",
      "type": "boolean",
      "optional": true,
      "description": "By default, the popover is constrained to fit inside its parent\n[stacking context](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context).\nEnabling this property will allow the popover to be rendered in the root stack context using\n[React Portals](https://reactjs.org/docs/portals.html).\nEnable this setting if you need the popover to ignore its parent stacking context, such as in side navigation.\n\nNote: Using popover rendered with portal within a Modal is not supported.",
      "defaultValue": "false",
      "formattedType": "boolean"
    },
    {
      "name": "size",
      "type": "string",
      "inlineType": {
        "name": "PopoverProps.Size",
        "type": "union",
        "values": [
          "small",
          "medium",
          "large"
        ]
      },
      "optional": true,
      "description": "Determines the maximum width for the popover.",
      "defaultValue": "'medium'",
      "formattedType": "string"
    },
    {
      "name": "triggerAriaLabel",
      "type": "string",
      "optional": true,
      "description": "Adds `aria-label` to the text trigger button. Use this to provide an accessible name for triggers\nthat don't have visible text, and to distinguish between multiple triggers with identical visible text.",
      "formattedType": "string"
    },
    {
      "name": "triggerType",
      "type": "string",
      "inlineType": {
        "name": "PopoverProps.TriggerType",
        "type": "union",
        "values": [
          "custom",
          "text",
          "text-inline"
        ]
      },
      "optional": true,
      "description": "Specifies the type of content inside the trigger region. The following types are available:\n- `text` - Use for triggers containing inline components, like status indicator.\n- `text-inline` - Use for triggers containing plain text only.\n- `custom` - Use for the [button](/components/button/) component.",
      "defaultValue": "'text'",
      "formattedType": "string"
    },
    {
      "name": "wrapTriggerText",
      "type": "boolean",
      "optional": true,
      "description": "Specifies if the text trigger content should wrap. If you set it to false, it prevents the text from\nwrapping and truncates it with an ellipsis.",
      "defaultValue": "true",
      "formattedType": "boolean"
    }
  ],
  "events": [],
  "path": "/components/popover"
}