<!-- Love SVGR? Please consider supporting our collective: 👉 https://opencollective.com/svgr/donate --> ## 🚀 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](https://github.com/gregberge/svgr#example) from the README, and e.g: ~~~ sh npx @svgr/cli --format qwik --icon --replace-attr-values "#063855=currentColor" -- icon.svg ~~~ would produce an optimized Qwik [component](https://qwik.dev/docs/components/overview#component): ~~~ js 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 ~~~ ## Pitch Requests have already come in for multiple frameworks: - #876 could be `--format astro` - #572 could be `--format vue` - #794 / #795 could be `--format solid` etc…
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be still under discussion. The issue was opened by danielbayley and has received 0 comments.