# SVGR

[BASE product page](<https://base.akulich.dev/en/library/svgr/>) · [Resource](<https://react-svgr.com/>)

ID: svgr · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

An SVG\-to\-React component converter with a CLI, optimization settings, and build integration for a maintainable project icon collection\.

## Type

Development library / tool

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/svgr/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/svgr/#resource-access>)

SVGR code is available free of charge for local and commercial projects, subject to its license\.

## [Paid features and costs](<https://base.akulich.dev/en/library/svgr/#resource-access>)

This library does not require a paid plan\. Development and hosting of the finished application are separate from the free code license\.

## [Access and limitations](<https://base.akulich.dev/en/library/svgr/#resource-access>)

SVGR code is available free of charge for local and commercial projects, subject to its license\. This library does not require a paid plan\. Development and hosting of the finished application are separate from the free code license\.

## [Use cases](<https://base.akulich.dev/en/library/svgr/#resource-tasks>)

- Processing SVGs for React
- Maintainable icons in a project

## Category IDs

- graphics

## Subcategory IDs

- graphics\.svg

## Tags

- React
- SVG
- Node\.js

## Also known as

- gregberge/svgr

## [Selection purpose](<https://base.akulich.dev/en/library/svgr/#resource-selection>)

Processing SVGs for React

## [Choose this when](<https://base.akulich.dev/en/library/svgr/#resource-selection>)

- Processing SVGs for React
- Maintainable icons in a project

## [Requirements](<https://base.akulich.dev/en/library/svgr/#resource-selection>)

- Choose a web/native template and align dimensions, viewBox, title/ARIA, and SVGO configuration\.

## [Limitations](<https://base.akulich.dev/en/library/svgr/#resource-selection>)

- Costs and limits of free use: This library does not require a paid plan\. Development and hosting of the finished application are separate from the free code license\.
- Terms of use: MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained\.
- Generating a React component does not make every SVG accessible automatically\. Optimization may change title/desc, so check the result\.

## [Questions before use](<https://base.akulich.dev/en/library/svgr/#resource-faq>)

### What can you use for free in SVGR?

SVGR code is available free of charge for local and commercial projects, subject to its license\.

### What additional costs might arise with SVGR?

This library does not require a paid plan\. Development and hosting of the finished application are separate from the free code license\.

### What terms of use matter for SVGR?

MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained\.

### How do you get started with SVGR?

Check the project's stack and version against the current SVGR documentation; add the package or the required source component\. Implement the selected workflow with the supplied data, adapting styles and states to the project\. Check the result in the target environment, remove sample data, and retain the notices required by the license\.

### How do I configure an SVG component's dimensions and accessible name in SVGR?

icon replaces width/height with the specified value, defaulting to 1em; dimensions:false removes original dimensions\. titleProp/descProp add the corresponding props, while svgProps sets role/ARIA\. SVGO is enabled by default, and prefixIds reduces id/class name collision risk; native uses react\-native\-svg and removes unsupported nodes\.

## Sources for the selection guide

- [https://react\-svgr\.com/](<https://react-svgr.com/>)
- [https://github\.com/gregberge/svgr](<https://github.com/gregberge/svgr>)
- [https://github\.com/gregberge/svgr/blob/main/README\.md](<https://github.com/gregberge/svgr/blob/main/README.md>)
- [https://github\.com/gregberge/svgr/blob/main/LICENSE](<https://github.com/gregberge/svgr/blob/main/LICENSE>)
- [https://react\-svgr\.com/docs/options/](<https://react-svgr.com/docs/options/>)

## [Possible workflow](<https://base.akulich.dev/en/library/svgr/#resource-scenario>)

Processing SVGs for React with SVGR\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A working React; SVG; Node\.js project and a specific use case: processing SVGs for React\.
- A design, interface states, or dataset; target screens and accessibility requirements\.

## Steps

1. Check the project's stack and version against the current SVGR documentation; add the package or the required source component\.
2. Implement the selected workflow with the supplied data, adapting styles and states to the project\.
3. Check the result in the target environment, remove sample data, and retain the notices required by the license\.

## Check your result

- The example works in the chosen tech stack, including target dimensions and input errors\.
- Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met\.

## [License](<https://base.akulich.dev/en/library/svgr/#resource-license>)

MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained\.

## License explanations for the specified scope

### MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed\-source commercial product\. When sharing copies or substantial portions of the code, retain the license text and copyright notice\. You do not need to open\-source your entire project; the author provides no warranties\.

[License terms](<https://opensource.org/license/mit>)

## [Sources](<https://base.akulich.dev/en/library/svgr/#resource-sources>)

- [Official website](<https://react-svgr.com/>)
- [Source code](<https://github.com/gregberge/svgr>)
- [Documentation and use](<https://github.com/gregberge/svgr/blob/main/README.md>)
- [License](<https://github.com/gregberge/svgr/blob/main/LICENSE>)
- [Official source](<https://react-svgr.com/docs/options/>)

## Editorial review date

2026\-10\-06

## Editorial review scope

Purpose, published primary source code/documentation, and license terms were reviewed\. An example was not run in a local project\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
