{
  "format": "ui-contract-component-draft",
  "id": "shadcn:Sheet",
  "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": "Owns open/modal state without a DOM root.",
    "trigger": "Actual primitive native trigger.",
    "content": "Actual focus-managed popup surface.",
    "overlay": "Actual modal backdrop; Sheet owns its unexported internal wrapper through Content.",
    "header": "Intrinsic heading stack.",
    "footer": "Actions, kept in caller order.",
    "title": "Actual heading named by primitive relation.",
    "description": "Actual descriptive paragraph.",
    "close": "Native close action, including optional internal icon close."
  },
  "stories": "stories.json",
  "ux": "ux.json",
  "composition": {
    "button": {
      "component": "../button/component.json"
    }
  },
  "convention": "semantic-component/1",
  "partBindings": {
    "root": {
      "kind": "controller",
      "declaration": "Sheet",
      "description": "Owns open/modal state without a DOM root.",
      "ownership": "React context/portal control, no promised DOM element"
    },
    "trigger": {
      "kind": "element",
      "declaration": "SheetTrigger",
      "selector": "[data-slot=\"sheet-trigger\"]",
      "description": "Actual primitive native trigger.",
      "ownership": "actual pinned wrapper"
    },
    "content": {
      "kind": "element",
      "declaration": "SheetContent",
      "selector": "[data-slot=\"sheet-content\"]",
      "description": "Actual focus-managed popup surface.",
      "ownership": "actual pinned wrapper"
    },
    "overlay": {
      "kind": "element",
      "declaration": "SheetContent",
      "selector": "[data-slot=\"sheet-overlay\"]",
      "description": "Actual modal backdrop; Sheet owns its unexported internal wrapper through Content.",
      "ownership": "actual pinned wrapper"
    },
    "header": {
      "kind": "element",
      "declaration": "SheetHeader",
      "selector": "[data-slot=\"sheet-header\"]",
      "description": "Intrinsic heading stack.",
      "ownership": "actual pinned wrapper"
    },
    "footer": {
      "kind": "element",
      "declaration": "SheetFooter",
      "selector": "[data-slot=\"sheet-footer\"]",
      "description": "Actions, kept in caller order.",
      "ownership": "actual pinned wrapper"
    },
    "title": {
      "kind": "element",
      "declaration": "SheetTitle",
      "selector": "[data-slot=\"sheet-title\"]",
      "description": "Actual heading named by primitive relation.",
      "ownership": "actual pinned wrapper"
    },
    "description": {
      "kind": "element",
      "declaration": "SheetDescription",
      "selector": "[data-slot=\"sheet-description\"]",
      "description": "Actual descriptive paragraph.",
      "ownership": "actual pinned wrapper"
    },
    "close": {
      "kind": "element",
      "declaration": "SheetClose",
      "selector": "[data-slot=\"sheet-close\"]",
      "description": "Native close action, including optional internal icon close.",
      "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",
      "line-height-body": "semantic.typography.bodyLineHeight",
      "sheet-backdrop-opacity": "components.sheet.backdropOpacity",
      "sheet-footer-padding": "components.sheet.footerPadding",
      "sheet-gap": "components.sheet.gap",
      "sheet-header-gap": "components.sheet.headerGap",
      "sheet-max-width": "components.sheet.maxWidth",
      "sheet-padding": "components.sheet.padding",
      "sheet-radius": "components.sheet.radius",
      "sheet-title-line-height": "components.sheet.titleLineHeight",
      "sheet-title-size": "components.sheet.titleSize",
      "sheet-title-weight": "components.sheet.titleWeight"
    },
    "runtimeProperties": {},
    "layoutPolicy": "The pinned Sheet wrapper owns the actual parts and primitive lifecycle; Root/Portal are controllers rather than invented DOM identities. The edge surface follows actual side values; horizontal edge surfaces cap at the selected native 384px width, vertical edge surfaces span the available viewport. Header inset 16px/gap 2px and footer inset 20px/gap 8px retain native section metrics. Native title 16/24 (Medium, or Semi Bold for AlertDialog) and body 14/20 are intrinsic text roles, never fixed frame heights. Footer order remains DOM order and wraps. Button actions explicitly depend on Button tokens/CVA, while primitive triggers remain bare unless the caller composes Button. Backdrop 50% and viewport clearance are explicit reference decisions; static examples do not measure live dimming. Close and Escape follow the actual primitive callback and host authority; no CSS rule invents state transitions.",
    "variants": {
      "placement": "Actual public side"
    },
    "sourceTraceability": "figma/traceability.json"
  }
}
