{
  "$schema": "https://next.0build.dev/schema/component.v1.json",
  "accessibility": {
    "aria": [],
    "notes": [
      "While shown, the trigger gets `aria-describedby=\"z-tooltip-singleton\"` and the tooltip element has `role=\"tooltip\"`; both are restored on hide.",
      "Keyboard focus shows the tooltip immediately when `:focus-visible` matches, so keyboard users get the same hint as pointer users.",
      "A stashed native `title` is restored when the tooltip hides, keeping the browser fallback available."
    ]
  },
  "attributes": [],
  "category": "overlays",
  "children": [],
  "cssClasses": [
    {
      "appliesTo": ".z-tooltip",
      "class": ".z-tooltip",
      "description": "Root class of the shared tooltip element (`div#z-tooltip-singleton` appended to `body`); hidden until the singleton adds `z-active`.",
      "role": "root"
    },
    {
      "appliesTo": ".z-tooltip",
      "class": ".z-tooltip-blur",
      "description": "Applies a backdrop blur and a slightly translucent background; enabled by the `blur` option.",
      "role": "modifier"
    }
  ],
  "cssVars": [
    {
      "affects": [
        "background-color"
      ],
      "default": "var(--z-primary)",
      "description": "Background base color, mixed with transparency using `--z-tooltip-bg-o`.",
      "file": "src/css/kit-components/tooltip.css",
      "kind": "base",
      "name": "--z-tooltip-bg",
      "scope": ".z-tooltip",
      "syntax": "<color>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "100%",
      "description": "Background opacity percentage used in the background color mix.",
      "file": "src/css/kit-components/tooltip.css",
      "kind": "base",
      "name": "--z-tooltip-bg-o",
      "scope": ".z-tooltip",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "-webkit-backdrop-filter",
        "backdrop-filter"
      ],
      "default": "var(--z-global-blur)",
      "description": "Backdrop blur radius used by `.z-tooltip-blur`.",
      "file": "src/css/kit-components/tooltip.css",
      "kind": "base",
      "name": "--z-tooltip-blur",
      "scope": ".z-tooltip",
      "syntax": ""
    },
    {
      "affects": [
        "color"
      ],
      "default": "var(--z-primary-f)",
      "description": "Text base color, mixed with transparency using `--z-tooltip-color-o`.",
      "file": "src/css/kit-components/tooltip.css",
      "kind": "base",
      "name": "--z-tooltip-color",
      "scope": ".z-tooltip",
      "syntax": "<color>"
    },
    {
      "affects": [
        "color"
      ],
      "default": "100%",
      "description": "Text opacity percentage used in the text color mix.",
      "file": "src/css/kit-components/tooltip.css",
      "kind": "base",
      "name": "--z-tooltip-color-o",
      "scope": ".z-tooltip",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "font-size"
      ],
      "default": "0.75rem",
      "description": "Font size of the tooltip text.",
      "file": "src/css/kit-components/tooltip.css",
      "kind": "base",
      "name": "--z-tooltip-font-size",
      "scope": ".z-tooltip",
      "syntax": "<length>"
    },
    {
      "affects": [
        "line-height"
      ],
      "default": "1rem",
      "description": "Line height of the tooltip text.",
      "file": "src/css/kit-components/tooltip.css",
      "kind": "base",
      "name": "--z-tooltip-line-height",
      "scope": ".z-tooltip",
      "syntax": "<length>"
    },
    {
      "affects": [
        "max-width"
      ],
      "default": "208px",
      "description": "Maximum width of the tooltip box; text wraps at this width.",
      "file": "src/css/kit-components/tooltip.css",
      "kind": "base",
      "name": "--z-tooltip-max-width",
      "scope": ".z-tooltip",
      "syntax": "<length>"
    },
    {
      "affects": [
        "padding"
      ],
      "default": "0.375rem 0.75rem",
      "description": "Inner padding of the tooltip box.",
      "file": "src/css/kit-components/tooltip.css",
      "kind": "base",
      "name": "--z-tooltip-padding",
      "scope": ".z-tooltip",
      "syntax": "<length>+"
    },
    {
      "affects": [
        "border-radius"
      ],
      "default": "var(--z-global-radius)",
      "description": "Corner radius of the tooltip box.",
      "file": "src/css/kit-components/tooltip.css",
      "kind": "base",
      "name": "--z-tooltip-radius",
      "scope": ".z-tooltip",
      "syntax": "<length>"
    },
    {
      "affects": [
        "box-shadow"
      ],
      "default": "var(--z-global-shadow-small)",
      "description": "Box shadow of the tooltip box.",
      "file": "src/css/kit-components/tooltip.css",
      "kind": "base",
      "name": "--z-tooltip-shadow",
      "scope": ".z-tooltip",
      "syntax": ""
    },
    {
      "affects": [],
      "default": "0",
      "description": "Horizontal enter-slide offset for the current side, used by the `z-tooltip-in` keyframes.",
      "file": "src/css/kit-components/tooltip.css",
      "kind": "base",
      "name": "--z-tooltip-slide-x",
      "scope": ".z-tooltip[data-side='top']",
      "syntax": "<length>"
    },
    {
      "affects": [],
      "default": "4px",
      "description": "Vertical enter-slide offset for the current side, used by the `z-tooltip-in` keyframes.",
      "file": "src/css/kit-components/tooltip.css",
      "kind": "base",
      "name": "--z-tooltip-slide-y",
      "scope": ".z-tooltip[data-side='top']",
      "syntax": "<length>"
    },
    {
      "affects": [
        "z-index"
      ],
      "default": "1030",
      "description": "Stacking order of the tooltip element.",
      "file": "src/css/kit-components/tooltip.css",
      "kind": "base",
      "name": "--z-tooltip-z-index",
      "scope": ".z-tooltip",
      "syntax": "<integer>"
    }
  ],
  "dataHooks": [
    {
      "appliesTo": "descendant",
      "attribute": "data-side",
      "description": "Set by the singleton on the tooltip element to the resolved placement side (`top`, `bottom`, `left`, `right`); selects fixed positioning and the enter-animation direction.",
      "role": "marker",
      "values": []
    },
    {
      "appliesTo": "external-trigger",
      "attribute": "data-tooltip",
      "description": "Activates the tooltip on the element. The value is the tooltip text, or an option string with `title`/`text`, `pos`/`placement`, `offset`, `delay`, `flip`, `shift`, `blur`, `cls`, and `stl`. A native `title` attribute is stashed and used as fallback text.",
      "role": "config",
      "values": []
    }
  ],
  "events": [
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires on the trigger when its tooltip is hidden, with the same detail shape as `show`.",
      "detail": {
        "fields": [
          {
            "name": "trigger",
            "type": "HTMLElement"
          },
          {
            "name": "tooltip",
            "type": "HTMLDivElement"
          }
        ],
        "type": "{ trigger: HTMLElement; tooltip: HTMLDivElement }"
      },
      "name": "z-tooltip:hide"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires on the trigger when its tooltip is shown. Detail carries `trigger` and `tooltip` (the shared tooltip element).",
      "detail": {
        "fields": [
          {
            "name": "trigger",
            "type": "HTMLElement"
          },
          {
            "name": "tooltip",
            "type": "HTMLDivElement"
          }
        ],
        "type": "{ trigger: HTMLElement; tooltip: HTMLDivElement }"
      },
      "name": "z-tooltip:show"
    }
  ],
  "i18n": [],
  "icons": [],
  "id": "tooltip",
  "inherits": [],
  "keyboard": [
    {
      "action": "Hides the visible (or pending) tooltip.",
      "keys": [
        "Escape"
      ]
    }
  ],
  "kind": "css",
  "methods": [],
  "notes": [
    "One shared tooltip element is reused for every trigger; it is created on first use and kept positioned with Floating UI `autoUpdate`.",
    "Hover shows after `delay` (default 100 ms); moving to another trigger within 350 ms of the last hide shows immediately (warmup).",
    "Touch pointers are ignored, disabled triggers are skipped, and pointerdown hides the tooltip.",
    "Placement names map to Floating UI placements (`top-left` → `top-start`, etc.); `flip` and `shift` keep the tooltip inside the viewport."
  ],
  "parts": {
    "defaultClsTarget": null,
    "defaultStlTarget": null,
    "items": []
  },
  "recipes": [],
  "related": [],
  "schemaVersion": 1,
  "sources": {
    "css": [
      "src/css/kit-components/tooltip.css"
    ],
    "cssSelectors": [
      ".z-tooltip",
      ".z-tooltip-*"
    ],
    "singleton": {
      "file": "src/js/singletons/tooltip.ts",
      "scope": ".z-tooltip"
    },
    "ts": null
  },
  "summary": "Singleton text hint shown on hover or keyboard focus of any `data-tooltip` element, positioned with Floating UI.",
  "tag": null,
  "title": "Tooltip"
}
