{
  "_copyright": "Copyright (c) 2026, Salesforce, Inc., All rights reserved. For full license text, see the LICENSE.txt file",
  "$schema": "https://slds.lightningdesignsystem.com/schemas/uif-foundation.v1.json",
  "apiVersion": "1.0.0",
  "name": "AvatarGroup",
  "description": "Creates an Avatar Group.",
  "structure": {
    "name": "root",
    "restrict": [
      "span",
      "div"
    ],
    "description": "Container that positions the primary and secondary avatars as an overlapping pair.",
    "children": [
      {
        "name": "primary",
        "restrict": [
          "span",
          "div"
        ],
        "description": "The primary (foreground) avatar in the group. Renders an image, user initials, or an icon.",
        "slot": {
          "name": "primary",
          "restrict": [
            "Avatar",
            "Icon"
          ]
        }
      },
      {
        "name": "secondary",
        "restrict": [
          "span",
          "div"
        ],
        "description": "The secondary (background) avatar in the group. Renders an image, user initials, or an icon.",
        "slot": {
          "name": "secondary",
          "restrict": [
            "Avatar",
            "Icon"
          ]
        }
      }
    ]
  },
  "states": [],
  "accessibility": {
    "requirements": [
      {
        "id": "alt-text",
        "description": "Each avatar image must have meaningful alt text identifying the person or entity it represents."
      },
      {
        "id": "icon-label",
        "description": "Icon-based avatars must expose an accessible name through visually hidden text or an equivalent label."
      },
      {
        "id": "initials-label",
        "description": "Avatars displayed as initials must expose the full name via title or an equivalent accessible label."
      }
    ]
  }
}
