{
  "format": "ui-contract-component-draft",
  "id": "shadcn:Popover",
  "version": "0.4.1",
  "status": "complete",
  "domains": {
    "interface": "interface.json",
    "visual": {
      "tokens": "../../tokens.json",
      "css": "layout.css"
    },
    "behavior": "behavior.scxml",
    "accessibility": {
      "html": "accessibility.html",
      "rules": "accessibility.rules.json"
    }
  },
  "anatomy": {
    "root": "Primitive open state/controller with no stable DOM root.",
    "trigger": "Actual native trigger; caller provides its complete accessible name.",
    "content": "Actual portal popup, positioned by the primitive.",
    "header": "Actual named popup header.",
    "title": "Actual named popup title.",
    "description": "Actual named popup description."
  },
  "stories": "stories.json",
  "ux": "ux.json",
  "composition": {
    "button": {
      "component": "../button/component.json"
    }
  },
  "convention": "semantic-component/1",
  "partBindings": {
    "root": {
      "kind": "controller",
      "declaration": "Popover",
      "description": "Primitive open state/controller with no stable DOM root.",
      "ownership": "React context/portal control, no promised DOM element"
    },
    "trigger": {
      "kind": "element",
      "declaration": "PopoverTrigger",
      "selector": "[data-slot=\"popover-trigger\"]",
      "description": "Actual native trigger; caller provides its complete accessible name.",
      "ownership": "actual pinned wrapper"
    },
    "content": {
      "kind": "element",
      "declaration": "PopoverContent",
      "selector": "[data-slot=\"popover-content\"]",
      "description": "Actual portal popup, positioned by the primitive.",
      "ownership": "actual pinned wrapper"
    },
    "header": {
      "kind": "element",
      "declaration": "PopoverHeader",
      "selector": "[data-slot=\"popover-header\"]",
      "description": "Actual named popup header.",
      "ownership": "actual pinned wrapper"
    },
    "title": {
      "kind": "element",
      "declaration": "PopoverTitle",
      "selector": "[data-slot=\"popover-title\"]",
      "description": "Actual named popup title.",
      "ownership": "actual pinned wrapper"
    },
    "description": {
      "kind": "element",
      "declaration": "PopoverDescription",
      "selector": "[data-slot=\"popover-description\"]",
      "description": "Actual named popup description.",
      "ownership": "actual pinned wrapper"
    }
  },
  "visualContract": {
    "tokens": {
      "border-width": "semantic.border.width",
      "color-background": "semantic.color.background",
      "color-border": "semantic.color.border",
      "color-foreground": "semantic.color.foreground",
      "color-muted-foreground": "semantic.color.mutedForeground",
      "font-fallback": "semantic.typography.fallbackFamily",
      "font-family": "semantic.typography.fontFamily",
      "font-size-body": "semantic.typography.bodySize",
      "font-weight-medium": "semantic.typography.mediumWeight",
      "line-height-body": "semantic.typography.bodyLineHeight",
      "popover-max-width": "components.popover.maxWidth",
      "popover-padding-block": "components.popover.paddingBlock",
      "popover-padding-inline": "components.popover.paddingInline",
      "popover-radius": "components.popover.radius"
    },
    "runtimeProperties": {},
    "layoutPolicy": "Actual Popover portal positioning, collision handling and defaults remain primitive-owned; CSS does not recreate anchor coordinates. Native radius/insets are adopted as semantic popup metrics, while width is fluid with an explicit bounded maximum. Popover keeps native 10px corners/10px insets and the actual 288px source width maximum. Header gap is 2px with native 14/20 typography; Title/Description relations are explicitly supplied in the reference usage. The primitive owns opening, Escape, outside press, focus restoration and controlled callbacks.",
    "variants": {},
    "sourceTraceability": "figma/traceability.json"
  }
}
