Merge pull request #778 from ongkristopher/patch-1

Fix clip-path issue on react
This commit is contained in:
Pablo Hdez
2025-09-29 19:05:17 +01:00
committed by GitHub
+1
View File
@@ -15,6 +15,7 @@ export const parseReactSvgContent = async ({
.replace("<svg", "<svg {...props}")
.replace(/class="/g, 'className="')
.replace(/clip-rule="/g, 'clipRule="')
.replace(/clip-path="/g, 'clipPath="')
.replace(/fill-rule="/g, 'fillRule="')
.replace(/stroke-width="/g, 'strokeWidth="')
.replace(/stroke-linecap="/g, 'strokeLinecap="')