Closed ownchoice closed 2 years ago
I think it would be nice to be able to add a title tag inside the svg of the icon, for accessibility purposes.
title
svg
<svg role="img"><title>Good Label</title> ... </svg>.
For reference: Accessible SVG Icons | CSS-Tricks
I was just looking for the exact same thing and discovered there is a title prop for that. 🤩 See Props.ts for all the props available.
Oh, you're right. That does the trick, thanks!
I think it would be nice to be able to add a
title
tag inside thesvg
of the icon, for accessibility purposes.For reference: Accessible SVG Icons | CSS-Tricks