SVG to JSX
Convert SVG markup into a React JSX component — attributes renamed, styles converted, optional TypeScript props.
How to use
- Paste SVG markup.
- Pick component name and options.
- Copy the JSX output.
What it supports
Renames HTML-invalid attributes (class→className, stroke-width→strokeWidth, xlink:href→href), converts style strings to objects, drops comments and processing instructions. Malformed XML is rejected with a position — no partial output.