SVG till React JSX / TSX-konverterare
Omvandla SVG-ikoner till rena React TSX-, React JSX- eller Vue 3-komponenter med ett klick, inklusive camelCase-attribut och currentColor.
Eller klistra in / redigera SVG-koden direkt nedan
import type { SVGProps } from "react"
export function SvgIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="64" viewBox="0 0 128 64" {...props}>
<rect x="16.12" y="12.57" width="96" height="40" rx="8" fill="currentColor" stroke="currentColor" strokeWidth="2"/>
<circle cx="44.89" cy="32.44" r="10.25" fill="currentColor"/>
</svg>
)
}
export default SvgIcon
Tekniska specifikationer och lokal integritet
- Bearbetning
- 100 % lokalt i webbläsaren (ingen uppladdning)
- Kärnmotor
- SVGR Attribute AST Mapper (React TSX / JSX / Vue 3)
- Licens och kostnad
- Gratis, ingen vattenstämpel, ingen registrering
Vanliga frågor
Omvandla SVG-ikoner till rena React TSX-, React JSX- eller Vue 3-komponenter med ett klick, inklusive camelCase-attribut och currentColor. (100 % lokalt i webbläsaren (ingen uppladdning))
Gratis, ingen vattenstämpel, ingen registrering · SVGR Attribute AST Mapper (React TSX / JSX / Vue 3)