{
  "$schema": "https://next.0build.dev/schema/component.v1.json",
  "accessibility": {
    "aria": [],
    "notes": []
  },
  "attributes": [],
  "category": "general",
  "children": [],
  "cssClasses": [
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar",
      "description": "Square avatar container for an image or initials.",
      "role": "root"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-bordered",
      "description": "Adds a border ring with inner padding around the avatar.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-dot",
      "description": "Status dot at the bottom-right corner (the default position).",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-dot-bottom",
      "description": "Status dot centered on the bottom edge.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-dot-bottom-left",
      "description": "Status dot at the bottom-left corner.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-dot-bottom-right",
      "description": "Status dot at the bottom-right corner.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-dot-danger",
      "description": "Danger-colored status dot.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-dot-info",
      "description": "Info-colored status dot.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-dot-left",
      "description": "Status dot centered on the left edge.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-dot-muted",
      "description": "Muted-colored status dot.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-dot-right",
      "description": "Status dot centered on the right edge.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-dot-success",
      "description": "Success-colored status dot.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-dot-top",
      "description": "Status dot centered on the top edge.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-dot-top-left",
      "description": "Status dot at the top-left corner.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-dot-top-right",
      "description": "Status dot at the top-right corner.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-dot-warning",
      "description": "Warning-colored status dot.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-rounded",
      "description": "Fully circular avatar and content.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-avatar",
      "class": ".z-avatar-text",
      "description": "Initials or text content filling the avatar.",
      "role": "element"
    }
  ],
  "cssVars": [
    {
      "affects": [
        "background-color"
      ],
      "default": "var(--z-bg)",
      "description": "Background behind the image or initials.",
      "file": "src/css/kit-components/avatar.css",
      "kind": "base",
      "name": "--z-avatar-bg",
      "scope": ".z-avatar",
      "syntax": "<color>"
    },
    {
      "affects": [
        "border-color"
      ],
      "default": "var(--z-border)",
      "description": "Border color of the bordered variant.",
      "file": "src/css/kit-components/avatar.css",
      "kind": "base",
      "name": "--z-avatar-border",
      "scope": ".z-avatar",
      "syntax": "<color>"
    },
    {
      "affects": [
        "border-color"
      ],
      "default": "4%",
      "description": "Opacity applied to the bordered variant's border color.",
      "file": "src/css/kit-components/avatar.css",
      "kind": "base",
      "name": "--z-avatar-border-o",
      "scope": ".z-avatar",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "var(--z-danger)",
      "description": "Background color of the status dot; the color variants set it per scheme.",
      "file": "src/css/kit-components/avatar.css",
      "kind": "base",
      "name": "--z-avatar-dot-bg",
      "scope": ".z-avatar-dot-danger::after",
      "syntax": "<color>"
    },
    {
      "affects": [
        "border-color"
      ],
      "default": "var(--z-bg)",
      "description": "Ring color around the status dot.",
      "file": "src/css/kit-components/avatar.css",
      "kind": "hook",
      "name": "--z-avatar-dot-border",
      "scope": ".z-avatar-dot::after, .z-avatar-dot-top::after, .z-avatar-dot-top-right::after, .z-avatar-dot-right::after, .z-avatar-dot-bottom::after, .z-avatar-dot-bottom-right::after, .z-avatar-dot-bottom-left::after, .z-avatar-dot-left::after, .z-avatar-dot-top-left::after",
      "syntax": "<color>"
    },
    {
      "affects": [
        "height",
        "width"
      ],
      "default": "0.875rem",
      "description": "Width and height of the status dot.",
      "file": "src/css/kit-components/avatar.css",
      "kind": "hook",
      "name": "--z-avatar-dot-size",
      "scope": ".z-avatar-dot::after, .z-avatar-dot-top::after, .z-avatar-dot-top-right::after, .z-avatar-dot-right::after, .z-avatar-dot-bottom::after, .z-avatar-dot-bottom-right::after, .z-avatar-dot-bottom-left::after, .z-avatar-dot-left::after, .z-avatar-dot-top-left::after",
      "syntax": "<length>"
    },
    {
      "affects": [
        "border-radius"
      ],
      "default": "var(--z-global-radius)",
      "description": "Corner radius of the avatar container.",
      "file": "src/css/kit-components/avatar.css",
      "kind": "base",
      "name": "--z-avatar-radius",
      "scope": ".z-avatar",
      "syntax": "<length>"
    },
    {
      "affects": [
        "height",
        "width"
      ],
      "default": "2.5rem",
      "description": "Width and height of the avatar.",
      "file": "src/css/kit-components/avatar.css",
      "kind": "base",
      "name": "--z-avatar-size",
      "scope": ".z-avatar",
      "syntax": "<length>"
    }
  ],
  "dataHooks": [],
  "events": [],
  "i18n": [],
  "icons": [],
  "id": "avatar",
  "inherits": [],
  "keyboard": [],
  "kind": "css",
  "methods": [],
  "notes": [
    "The status dot is a `::after` pseudo-element: combine one position class with one color class on the container.",
    "Images fill the container with `object-fit: cover`."
  ],
  "parts": {
    "defaultClsTarget": null,
    "defaultStlTarget": null,
    "items": []
  },
  "recipes": [],
  "related": [],
  "schemaVersion": 1,
  "sources": {
    "css": [
      "src/css/kit-components/avatar.css"
    ],
    "cssSelectors": [
      ".z-avatar",
      ".z-avatar-*"
    ],
    "ts": null
  },
  "summary": "Image or initials avatar with rounded and bordered variants and a positionable status dot.",
  "tag": null,
  "title": "Avatar"
}
