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
Add an option/argument to the CLI, something like --format <framework>—or possibly --output?
--format <framework>
--output
Many newer frameworks are better than React, the benefits of SVGR could/should be made available to all.
Given the example from the README, and e.g:
npx @svgr/cli --format qwik --icon --replace-attr-values "#063855=currentColor" -- icon.svg
would produce an optimized Qwik component:
import { component$ } from "@builder.io/qwik" const SvgComponent = component$(props => ( <svg width="1em" height="1em" viewBox="0 0 48 1" {...props}> <path d="M0 0h48v1H0z" fill="currentColor" fillRule="evenodd" /> </svg> ) export default SvgComponent
Requests have already come in for multiple frameworks:
--format astro
--format vue
--format solid
etc…
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🚀 Feature Proposal
Add an option/argument to the CLI, something like
--format <framework>
—or possibly--output
?Motivation
Many newer frameworks are better than React, the benefits of SVGR could/should be made available to all.
Example
Given the example from the README, and e.g:
npx @svgr/cli --format qwik --icon --replace-attr-values "#063855=currentColor" -- icon.svg
would produce an optimized Qwik component:
Pitch
Requests have already come in for multiple frameworks:
--format astro
--format vue
--format solid
etc…
The text was updated successfully, but these errors were encountered: