Skip to main content
Inline SVG element.
{
  "type": "object",
  "properties": {
    "type": {
      "const": "Svg",
      "default": "Svg",
      "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."
    },
    "content": {
      "description": "SVG markup",
      "type": "string"
    },
    "width": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS width"
    },
    "height": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS height"
    }
  },
  "required": [
    "type",
    "content"
  ]
}