gregberge/svgr
Transform SVGs into React components 🦁 observed · 2026-08-28
Health v2 · maintenance only
54/100
- Activity 70
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3288
- days_rel: n/a
- days_push: 185
- n_releases_24m: 0
Adoption not part of the score
11055 stars · 442 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
SVGR is a universal tool that transforms SVG files into ready-to-use React components, with an optimizer powered by SVGO. It is available as a CLI, Node.js API, webpack loader, and online playground, and is used by tools like Next.js, Create React App, and WordPress.
Use cases
- convert svg files to react components
- import svg icons as react components in next.js
- optimize and inline svgs in a webpack build
- bulk transform an icon set into a react component library
- replace svg fill colors with currentcolor for theming
- use svgs in react native
When to choose
- you use React or React Native and want SVGs as components
- you need automated, repeatable SVG-to-component conversion in a build pipeline
- you want SVGO optimization and attribute customization built in
When to avoid
- you use a framework other than React
- you just need to display a static SVG image without component conversion
- you need runtime SVG manipulation rather than build-time transformation
Facets
library · maturity active
build-tool cli frontend-framework ui-components image-processing plugin-system web-development frontend developer-tools graphics cli cross-platform svg react webpack-loader svgo code-generation icons react-native nodejs web
4 sources
- readme: https://github.com/gregberge/svgr · fetched 2026-08-28 · 31283a2d8183
- homepage: https://react-svgr.com · fetched 2026-08-29 · 416d37d0c48f
- site_page: https://react-svgr.com/docs · fetched 2026-08-29 · fe513c2db48c
- site_page: https://react-svgr.com/docs/getting-started · fetched 2026-08-29 · 172b6c374395
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| gregberge/svgr | main | 54 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem