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
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | SVG content as string or file path to SVG file | |
| componentName | No | Name for the React component (default: MyComponent) | |
| options | No | SVGR configuration options |