svgr icon indicating copy to clipboard operation
svgr copied to clipboard

Transform SVGs into React components 🦁

Results 149 svgr issues
Sort by recently updated
recently updated
newest added

## πŸ› Bug Report SVGR doesn't seems to contain any option to sanitize SVGs ![Screenshot 2023-10-17 at 9 23 37](https://github.com/gregberge/svgr/assets/2685242/7580c72d-f960-4daf-a73b-39c22f6537d2) ## To Reproduce Just add `` with the wanted XSS...

## πŸ› Bug Report With the introduction of dependencies in the next project, the svg structure in the compiled html is not consistent with the svg file structure,see image ![image](https://github.com/gregberge/svgr/assets/56965332/38b6b6ac-6bbc-4fb4-93e9-94222f03c0d2)...

## Summary Fix the invalid forward ref type when using `native`, `typescript` and `ref` options ```tsx import Svg, { Path } from 'react-native-svg' import type { SvgProps } from 'react-native-svg'...

Could `@svgr/rollup` expose the runtime configuration item of `@babel/preset-react`, I want to compiled product use the `jsx-runtime` in React17 instead of the old `React.createElement`?

## πŸ’¬ Questions and Help Hello! Thanks for creating this very useful tool! I don't know if this is intended but when I use the `--ext` option, the index file...

## πŸ› Bug Report When `typescript` and `ref` are enabled, the `Ref` import should be an `import type` ## To Reproduce Convert a SVG using the `typescript` and `ref` set...

## Summary When passing options to `@svgr/webpack`, I'd like to write them with typing like this: ```ts rules: [{ test: /\.svg$/i, issuer: /\.[jt]sx?$/, use: [{ loader: '@svgr/webpack', /** @type {import('@svgr/webpack').LoaderOptions}...

## πŸ› Bug Report Prettier when using the CLI tool doesn't match when I just run prettier `2.8.8`. ## To Reproduce When I run with these configuration options: ```json {...

## Summary I think it is very important to leave this option off by default. 1 - original files have this option (e.g. copied from figma) 2 - not many...

## πŸ› Bug Report When using this library and running the type checker, I get this error: ``` ../../common/temp/node_modules/.pnpm/@[email protected]/node_modules/@svgr/core/dist/index.d.ts:2:10 - error TS2305: Module '"svgo"' has no exported member 'OptimizeOptions'. 2...