svgr
svgr copied to clipboard
Transform SVGs into React components 🦁
## 🐛 Bug Report I report that I ran "npm install @svgr/plugin-svgo @svgr/webpack --save-dev" and got the following WARN.: npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@es-joy/[email protected]',...
After install nextjs I have next.config.js: ```js /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, } module.exports = nextConfig ``` In [svgo docs](https://react-svgr.com/docs/next/#usage) another format of next.config.js: ```...
## 🐛 Bug Report Our project has a directory of svg icons in `modules/react-components/src/assets/images` which is being used by other ts files in the same module as follows. **modules/react-components/src/components/alert/alert.tsx** ```...
## 🐛 Bug Report I'm trying to move the `ref` part from `` to a different part in my own template. But, it seems I can't do this when I...
Going through the TypeScript types for `Config` in `@svgr/core`, it's missing two options still listed in the website but that no longer exist in the code: `ignoreExisting` and `indexTemplate`. ```ts...
## 🐛 Bug Report when opening the playground, it throws a type error. Not a deal breaker but still ## To Reproduce 1. Open the playground ig ## Expected behavior...
## Summary I've made a small contribution aimed at addressing an issue noted in [#860](https://github.com/gregberge/svgr/issues/860). The problem was concerning the possibility of a TypeError occurring in the next.config.js example code...
## 💬 Questions and Help Is there any ways to transform a React component (which was transformed from a svg file) back to the svg file?
## 🐛 Bug Report The instagram icon is not rendered properly (on Chrome/Firefox) after conversion. App is a React Remix app. Instructions that were followed to install: https://react-svgr.com/docs/remix/ ## To...
## 🚀 Feature Proposal I love using SVGR in my vite app, but I'd love to use it in [Astro](https://astro.build/) sites with truly static svg imports. I built https://github.com/jasikpark/astro-svg-loader as...