# svgr **Repository Path**: dang050/svgr ## Basic Information - **Project Name**: svgr - **Description**: Transform SVGs into React components 🦁 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-23 - **Last Updated**: 2021-07-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
Transform SVGs into React components 🦁
[](https://github.com/gregberge/svgr/blob/master/LICENSE) [](https://opencollective.com/svgr/donate) [](https://www.npmjs.com/package/@svgr/core) [](https://www.npmjs.com/package/@svgr/core) [](https://travis-ci.org/gregberge/svgr) [](https://codecov.io/github/gregberge/svgr)  [](https://david-dm.org/gregberge/svgr?path=packages/core) [](https://david-dm.org/gregberge/svgr?type=dev) [](https://gitpod.io/from-referrer/) [**Try it out online!**](https://react-svgr.com/playground) [**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://react-svgr.com) **See the documentation at [react-svgr.com](https://react-svgr.com)** for more information about using `svgr`! Quicklinks to some of the most-visited pages: - [**Playground**](https://react-svgr.com/playground/) - [**Getting started**](https://react-svgr.com/docs/getting-started/) - [CLI usage](https://react-svgr.com/docs/cli/) - [Webpack usage](https://react-svgr.com/docs/webpack/) - [Node usage](https://react-svgr.com/docs/node-api/) - [VS-Code Extension](https://marketplace.visualstudio.com/items?itemName=NathHorrigan.code-svgr) ## Example **Take an icon.svg**: ```html ``` **Run SVGR** ```sh npx @svgr/cli --icon --replace-attr-values "#063855=currentColor" icon.svg ``` **Output** ```js import * as 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. [](https://opencollective.com/svgr/order/6010) ## Contributing Check out the [contributing guidelines](CONTRIBUTING.md) # 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.