I may've just missed how to do so but is there a way to add these as HTML tags to the SVG? title attributes aren't recognized by screen readers and the recommended method for accessible icons is to put a <title> or <text> tag within the SVG.
It'd be super useful to be able to do something like <Heroicons.gear solid title="A gear" /> and <title>A gear</title> would show up within the rendered SVG.
Attributes such as aria-label aren't a problem as they can, already, be added like any other attribute.
I may've just missed how to do so but is there a way to add these as HTML tags to the SVG?
title
attributes aren't recognized by screen readers and the recommended method for accessible icons is to put a<title>
or<text>
tag within the SVG.It'd be super useful to be able to do something like
<Heroicons.gear solid title="A gear" />
and<title>A gear</title>
would show up within the rendered SVG.Attributes such as
aria-label
aren't a problem as they can, already, be added like any other attribute.