Svg
SVG component for rendering inline SVG content from string sources with optional styling classes.
Source
Type Definition
function Svg({
src,
className
}: {
src: string
className?: string
}): JSX.Element
Parameters
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
src | string | ✅ | - | SVG content as a string to be rendered inline |
className | string | ❌ | - | CSS class name to apply to the container div |
Last modified: 2025-06-10