buntal - components

Svg

SVG component for rendering inline SVG content from string sources with optional styling classes.

Source

View source on GitHub

Type Definition

function Svg({
  src,
  className
}: {
  src: string
  className?: string
}): JSX.Element

Parameters

ParameterTypeRequiredDefaultDescription
srcstring-SVG content as a string to be rendered inline
classNamestring-CSS class name to apply to the container div

Last modified: 2025-06-10

Content-Length: 0