Skip to main content
Tooltip that appears on hover over its child.
{
  "type": "object",
  "properties": {
    "type": {
      "const": "Tooltip",
      "default": "Tooltip",
      "type": "string"
    },
    "id": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "HTML id attribute for CSS targeting. Applied to the outermost element."
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling. Accepts a Responsive() for breakpoint-aware classes."
    },
    "children": {
      "type": "array",
      "items": {
        "$ref": "Component"
      }
    },
    "let": {
      "additionalProperties": true,
      "type": [
        "object",
        "null"
      ],
      "default": null,
      "description": "Scoped bindings available to children. Values are template strings."
    },
    "content": {
      "description": "Tooltip text",
      "type": "string"
    },
    "side": {
      "enum": [
        "top",
        "right",
        "bottom",
        "left"
      ],
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Which side to show the tooltip"
    },
    "delay": {
      "type": [
        "integer",
        "null"
      ],
      "default": null,
      "description": "Delay in milliseconds before showing the tooltip"
    }
  },
  "required": [
    "type",
    "content"
  ]
}