We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using Vite plugin svgr to import multiple SVG files into a single component, I got a collision of the style because the ids how to handle this?
The text was updated successfully, but these errors were encountered:
This should be fixed after:
@svgr/plugin-svgo
{ svgrOptions: { plugins: ['@svgr/plugin-svgo', '@svgr/plugin-jsx'], } }
However, when using single file multiple times, all components still use one single ID. This is known issue for inline svgs:
See: SVGR Docs > Options > SVGO
Sorry, something went wrong.
My particular case may be fixed with https://github.com/laleksiunas/inline-svg-unique-id
No branches or pull requests
When using Vite plugin svgr to import multiple SVG files into a single component, I got a collision of the style because the ids how to handle this?
The text was updated successfully, but these errors were encountered: