svgr Command Examples

Transform SVGs into React components. More information: https://react-svgr.com.

svgr -- {{path/to/file.svg}}

svgr --typescript -- {{path/to/file.svg}}

svgr --jsx-runtime automatic -- {{path/to/file.svg}}

svgr --out-dir {{path/to/output_directory}} {{path/to/input_directory}}

svgr --out-dir {{path/to/output_directory}} --ignore-existing {{path/to/input_directory}}

svgr --out-dir {{path/to/output_directory}} --filename-case {{camel|kebab|pascal}} {{path/to/input_directory}}

svgr --out-dir {{path/to/output_directory}} --no-index {{path/to/input_directory}}