During the development I had a problem. I needed to put the svg inside the <button>, but the plugin automatically added a div wrapper. I think this is not quite semantic. <button> must contain only phrasing content. Phrasing content is defined as including <span> or something else but not <div>.
So, I added new props for tag name. Also added props for wrapper and svg element classes to add more flexibility and functionality to plugin.
Hi! Thanks for your plugin.
During the development I had a problem. I needed to put the svg inside the
<button>
, but the plugin automatically added adiv
wrapper. I think this is not quite semantic.<button>
must contain only phrasing content. Phrasing content is defined as including<span>
or something else but not<div>
.So, I added new props for tag name. Also added props for wrapper and svg element classes to add more flexibility and functionality to plugin.