Output valid React JSX
egoist opened this issue · comments
EGOIST commented
It should convert kebab-case like stroke-width
to camelCase
Anthony Fu commented
Which icon set you are using when facing this issue? I didn't found an icon with kebab-case attrs.
EGOIST commented
for example this is the JSX output of heroicons-outline:search
from heroicons:
<svg focusable="false" width="1em" height="1em" viewBox="0 0 24 24">
<g fill="none">
<path
d="M21 21l-6-6m2-5a7 7 0 1 1-14 0a7 7 0 0 1 14 0z"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"></path>
</g>
</svg>
Anthony Fu commented
Fixed. Thanks