{"schemaVersion":1,"id":"svgr","name":"SVGR","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/svgr/","officialUrl":"https://react-svgr.com/","isCatalog":false,"description":"An SVG-to-React component converter with a CLI, optimization settings, and build integration for a maintainable project icon collection.","tasks":["Processing SVGs for React","Maintainable icons in a project"],"categoryIds":["graphics"],"subcategoryIds":["graphics.svg"],"tags":["React","SVG","Node.js"],"aliases":["gregberge/svgr"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"SVGR code is available free of charge for local and commercial projects, subject to its license.","paidUsage":"This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.","license":"MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.","selectionGuide":{"purpose":"Processing SVGs for React","chooseWhen":["Processing SVGs for React","Maintainable icons in a project"],"considerInstead":[],"requirements":["Choose a web/native template and align dimensions, viewBox, title/ARIA, and SVGO configuration."],"limitations":["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."],"faq":[{"question":"What can you use for free in SVGR?","answer":"SVGR code is available free of charge for local and commercial projects, subject to its license."},{"question":"What additional costs might arise with SVGR?","answer":"This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license."},{"question":"What terms of use matter for SVGR?","answer":"MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained."},{"question":"How do you get started with SVGR?","answer":"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."},{"question":"How do I configure an SVG component's dimensions and accessible name in SVGR?","answer":"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."}],"related":[],"sources":["https://react-svgr.com/","https://github.com/gregberge/svgr","https://github.com/gregberge/svgr/blob/main/README.md","https://github.com/gregberge/svgr/blob/main/LICENSE","https://react-svgr.com/docs/options/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Processing SVGs for React with SVGR.","inputs":["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":["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."],"checks":["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."]},"sources":["https://react-svgr.com/","https://github.com/gregberge/svgr","https://github.com/gregberge/svgr/blob/main/README.md","https://github.com/gregberge/svgr/blob/main/LICENSE","https://react-svgr.com/docs/options/"],"checkedAt":"2026-10-06","reviewScope":"Purpose, published primary source code/documentation, and license terms were reviewed. An example was not run in a local project.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Development library / tool","kind":"library","pricingNote":"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.","notes":null,"labeledSources":[{"url":"https://react-svgr.com/","label":"Official website"},{"url":"https://github.com/gregberge/svgr","label":"Source code"},{"url":"https://github.com/gregberge/svgr/blob/main/README.md","label":"Documentation and use"},{"url":"https://github.com/gregberge/svgr/blob/main/LICENSE","label":"License"},{"url":"https://react-svgr.com/docs/options/","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"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.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}