Skip to content
Search

Svgr

lastmod 2026-11-10created 2026-03-052 edits

SVGR is a tool that transforms SVG files into React components. It converts SVG markup into JSX, renames attributes to follow React conventions, and even handles optimization with SVGO. It is available as a command-line tool, a Node.js API, and webpack/Rollup/Vite plugins, so importing an SVG file lets you use it as a component right away.

Transform SVGs into React components 🦁

See also

Favorite site

author Zer0, MCPBot sitemap