# svgr **Repository Path**: mirrors_TrySound/svgr ## Basic Information - **Project Name**: svgr - **Description**: Transform SVGs into React components 🦁 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2026-03-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

svgr

Transform SVGs into React components 🦁

[![License](https://img.shields.io/npm/l/@svgr/core.svg)](https://github.com/smooth-code/svgr/blob/master/LICENSE) [![Donate](https://opencollective.com/svgr/backers/badge.svg)](https://opencollective.com/svgr/donate) [![npm package](https://img.shields.io/npm/v/@svgr/core/latest.svg)](https://www.npmjs.com/package/@svgr/core) [![npm downloads](https://img.shields.io/npm/dm/@svgr/core.svg)](https://www.npmjs.com/package/@svgr/core) [![Build Status](https://img.shields.io/travis/smooth-code/svgr.svg)](https://travis-ci.org/smooth-code/svgr) [![Code Coverage](https://img.shields.io/codecov/c/github/smooth-code/svgr.svg)](https://codecov.io/github/smooth-code/svgr) ![Code style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg) [![Dependencies](https://img.shields.io/david/smooth-code/svgr.svg?path=packages%2Fcore)](https://david-dm.org/smooth-code/svgr?path=packages/core) [![DevDependencies](https://img.shields.io/david/dev/smooth-code/svgr.svg)](https://david-dm.org/smooth-code/svgr?type=dev) [**Try it out online!**](https://svgr.now.sh) [**Watch the talk at React Europe**](https://www.youtube.com/watch?v=geKCzi7ZPkA) SVGR transforms SVG into ready to use components. It is part of create-react-app and makes SVG integration into your React projects easy. ## [Docs](https://www.smooth-code.com/open-source/svgr) **See the documentation at [smooth-code.com/open-source/svgr](https://www.smooth-code.com/open-source/svgr)** for more information about using `svgr`! Quicklinks to some of the most-visited pages: - [**Playground**](https://www.smooth-code.com/open-source/svgr/playground/) - [**Getting started**](https://www.smooth-code.com/open-source/svgr/docs/getting-started/) - [CLI usage](https://www.smooth-code.com/open-source/svgr/docs/cli/) - [Webpack usage](https://www.smooth-code.com/open-source/svgr/docs/webpack/) - [Node usage](https://www.smooth-code.com/open-source/svgr/docs/node-api/) ## Example **Take an icon.svg**: ```html Rectangle 5 Created with Sketch. ``` **Run SVGR** ```sh npx @svgr/cli --icon --replace-attr-values "#063855=currentColor" icon.svg ``` **Output** ```js import React from 'react' const SvgComponent = props => ( ) export default SvgComponent ``` ## Supporting SVGR SVGR is a MIT-licensed open source project. It's an independent project with ongoing development made possible thanks to the support of these awesome [backers](/BACKERS.md). If you'd like to join them, please consider: - [Become a backer or sponsor on OpenCollective](https://opencollective.com/svgr). ### Gold Sponsors Gold Sponsors are those who have pledged \$100/month and more to SVGR. [![gold-sponsors](https://opencollective.com/svgr/tiers/gold-sponsors.svg?avatarHeight=120&width=600)](https://opencollective.com/svgr/order/6010) # License Licensed under the MIT License, Copyright © 2017-present Smooth Code. See [LICENSE](./LICENSE) for more information. ## Acknowledgements This project has been popularized by [Christopher Chedeau](https://twitter.com/vjeux) and it has been included in [create-react-app] thanks to [Dan Abramov](https://twitter.com/dan_abramov). We would like to thanks [Sven Sauleau](https://twitter.com/svensauleau) for his help and its intuition.