svg_to_icon
Convert raw SVG code into a React TSX icon component and optionally save it to your icons folder.
Instructions
Convert raw SVG code into a TSX icon component and optionally write it to your icons folder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Only return TSX, don't write file. | |
| svg_code | Yes | Raw SVG markup string. | |
| icon_name | Yes | Icon name e.g. 'arrow-right' → ArrowRightIcon. | |
| icons_dir | No | If provided, writes the TSX file after similarity check. |