Documentation Index
Fetch the complete documentation index at: https://prefab.prefect.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Svg renders inline SVG markup directly in the page. Content is automatically sanitized to strip scripts and event handlers, making it safe for LLM-generated diagrams, charts, and illustrations.
Basic Usage
The first positional argument iscontent. Unlike Embed, SVG renders inline in the DOM — it participates in the page layout and can be styled with CSS classes.
Sizing
By default, the SVG renders at its intrinsic size (fromviewBox). Override with width and height:
Fixed size
Security
All SVG content is sanitized with DOMPurify before rendering. This strips<script> tags, event handlers (onload, onclick, etc.), and other potentially dangerous elements. Safe SVG features — paths, shapes, gradients, filters, text — pass through unchanged.
API Reference
Protocol Reference
Svg