Skip to main content
Glama

convert_svg_to_react

Convert SVG content or files into React components with configurable options including TypeScript generation, React Native support, and optimization.

Instructions

Convert SVG content or file to React component using SVGR

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
svgYesSVG content as string or file path to SVG file
componentNameNoName for the React component (default: MyComponent)
optionsNoSVGR configuration options
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pchalupa/svgr-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server