{
  "format": "ui-contract-component-draft",
  "id": "shadcn:Avatar",
  "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": "Actual portrait root with public size.",
    "image": "Loaded native image; alt is caller meaning.",
    "fallback": "Fallback content mounted by primitive lifecycle; named image role belongs to this caller.",
    "badge": "Small visual badge, with status conveyed separately as ordinary text.",
    "group": "Actual group layout, optional caller grouping/name.",
    "status": "Caller-owned readable status outside the visual badge.",
    "count": "Passive visible overflow count, not an invented action or size API."
  },
  "stories": "stories.json",
  "ux": "ux.json",
  "convention": "semantic-component/1",
  "partBindings": {
    "root": {
      "kind": "element",
      "declaration": "Avatar",
      "selector": "[data-slot=\"avatar\"]",
      "description": "Actual portrait root with public size.",
      "ownership": "actual pinned wrapper"
    },
    "image": {
      "kind": "element",
      "declaration": "AvatarImage",
      "selector": "[data-slot=\"avatar-image\"]",
      "description": "Loaded native image; alt is caller meaning.",
      "ownership": "actual pinned wrapper"
    },
    "fallback": {
      "kind": "element",
      "declaration": "AvatarFallback",
      "selector": "[data-slot=\"avatar-fallback\"]",
      "description": "Fallback content mounted by primitive lifecycle; named image role belongs to this caller.",
      "ownership": "actual pinned wrapper"
    },
    "badge": {
      "kind": "element",
      "declaration": "AvatarBadge",
      "selector": "[data-slot=\"avatar-badge\"]",
      "description": "Small visual badge, with status conveyed separately as ordinary text.",
      "ownership": "actual pinned wrapper"
    },
    "group": {
      "kind": "element",
      "declaration": "AvatarGroup",
      "selector": "[data-slot=\"avatar-group\"]",
      "description": "Actual group layout, optional caller grouping/name.",
      "ownership": "actual pinned wrapper"
    },
    "status": {
      "kind": "element",
      "declaration": "AvatarBadge",
      "selector": "[data-part=\"avatar-status\"]",
      "description": "Caller-owned readable status outside the visual badge.",
      "ownership": "caller"
    },
    "count": {
      "kind": "element",
      "declaration": "AvatarGroupCount",
      "selector": "[data-slot=\"avatar-group-count\"]",
      "description": "Passive visible overflow count, not an invented action or size API.",
      "ownership": "actual pinned wrapper"
    }
  },
  "visualContract": {
    "tokens": {
      "avatar-badge-size": "components.avatar.badgeSize",
      "avatar-badge-size-lg": "components.avatar.badgeSizeLg",
      "avatar-badge-size-sm": "components.avatar.badgeSizeSm",
      "avatar-overlap": "components.avatar.overlap",
      "avatar-ring": "components.avatar.ring",
      "avatar-size": "components.avatar.size",
      "avatar-size-lg": "components.avatar.sizeLg",
      "avatar-size-sm": "components.avatar.sizeSm",
      "border-width": "semantic.border.width",
      "color-background": "semantic.color.background",
      "color-border": "semantic.color.border",
      "color-foreground": "semantic.color.foreground",
      "color-muted": "semantic.color.muted",
      "color-muted-foreground": "semantic.color.mutedForeground",
      "color-primary": "semantic.color.primary",
      "color-primary-foreground": "semantic.color.primaryForeground",
      "font-fallback": "semantic.typography.fallbackFamily",
      "font-family": "semantic.typography.fontFamily",
      "font-size-body": "semantic.typography.bodySize",
      "line-height-body": "semantic.typography.bodyLineHeight"
    },
    "runtimeProperties": {},
    "layoutPolicy": "Actual Root sizes sm/default/lg map to native 24/32/40px circles; source badge sizes map to8/10/12px. The primitive owns image loading/error and fallback delay. Root remains overflow-visible for the badge; image/fallback inherit circle clipping. Group retains native 8px logical overlap and pinned 2px rings. Native size/type artwork does not create a public type prop. Count has a selected default 32px presentation because its actual API has no size prop; applications may explicitly adapt className for other group recipes. Badge uses the pinned physical right/bottom anchor even in RTL; ordinary adjacent text conveys any essential status. Independently authored portrait assets are fixtures, not extracted native image claims.",
    "variants": {
      "size": [
        "sm",
        "default",
        "lg"
      ]
    },
    "sourceTraceability": "figma/traceability.json"
  }
}
