This is a Mesop web_component implementation to provide an SVG icon.
import the component
from svg_icon.svg_icon_component import (
svg_icon,
)
use the component with a full <svg> ... </svg>
element in a mesop.Page
svg_icon(svg="""<svg data-icon-name="exampleIcon" .... </svg>""")
-
svg_icon_app.py
contains an example