You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to add a title attribute to my icon components.
Problem is <svg title="Icon explaination"></svg> does not provide a tooltip on mouseover as you would expect with any other HTML element. For SVG, the title must be a child element of the svg tag like this:
which is out of reach at the moment with unplugin-icons
I wonder if it would be possible from unplugin-icons to support a title prop for Icon components that would add this <title> element as a child to SVG elements injected. Open to other suggestions as well. Thanks !
The text was updated successfully, but these errors were encountered:
Hello, and thanks for this great library.
I would like to add a title attribute to my icon components.
Problem is
<svg title="Icon explaination"></svg>
does not provide a tooltip on mouseover as you would expect with any other HTML element. For SVG, the title must be a child element of the svg tag like this:which is out of reach at the moment with unplugin-icons
I wonder if it would be possible from unplugin-icons to support a
title
prop for Icon components that would add this<title>
element as a child to SVG elements injected. Open to other suggestions as well. Thanks !The text was updated successfully, but these errors were encountered: