Skip to main content
Tooltip that appears on hover over its child.
{
  "type": "object",
  "properties": {
    "type": {
      "const": "Tooltip",
      "default": "Tooltip",
      "type": "string"
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling"
    },
    "children": {
      "type": "array",
      "items": {
        "$ref": "Component"
      }
    },
    "content": {
      "description": "Tooltip text",
      "type": "string"
    },
    "side": {
      "enum": [
        "top",
        "right",
        "bottom",
        "left"
      ],
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Which side to show the tooltip"
    }
  },
  "required": [
    "type",
    "content"
  ]
}