svgr
svgr copied to clipboard
Transform SVGs into React components 🦁
## 💬 Questions and Help SVGR project is young, but please before asking your question: - Read carefully the README of the project - Search if your answer has already...
## 🚀 Feature Proposal Introduce any option to allow remove attributes for any component name ## Motivation We use `data-testid` attributes on the project, to test our components, but we...
## Summary resolves #937 `snake-case` is a deprecated repo. `just-snake-case` does the same thing with fewer dependencies. ## Test plan
## 🐛 Bug Report The snake-case dependency for the cli has been deprecated. It also had an oddly deep dependency tree. https://github.com/search?q=repo%3Agregberge%2Fsvgr%20snake-case&type=code Perhaps an upgrade could evaluate libraries by which...
Hey, folks. My issue is really weird and I need some help. I have a project where I am using `svgr` and now I am getting a warning from react....
Using classic import in importing my svgs in nextjs app gives me the error 'Cannot find module 'anypathtosvg.svg?url' or its corresponding type declarations.'. Next v13.4.0 Typescript v4.9.5 @svgr/webpack v8.1.0 is...
## 🐛 Bug Report `width` & `height` attributes didn’t work with `viewBox`. I need to be able to keep the `width` & `height` + viewBox but it didn't work. ##...
## Summary Allows disabling of JSX Attribute transformation (camelCasing of kebab-case attributes), which benefits Preact users (who are otherwise supported by SVGR explicitly, by `jsxRuntime: 'classic-preact'`). Would resolve https://github.com/gregberge/svgr/issues/450 ##...
## 🐛 Bug Report need props className append to svg classes , but It is now being replaced props className to svg class ## To Reproduce ```js // next.config.js /**...
## 🐛 Bug Report The `plugins` option is undocumented? It's not mentioned on: https://react-svgr.com/docs/options/ While it is needed to enable for example the svgo plugin: https://www.npmjs.com/package/@svgr/plugin-svgo Another place to possibly...