DevToys-app / DevToysMac

DevToys For mac
MIT License
9.22k stars 361 forks source link

[Feature request] Convert SVG to JSX #94

Open RodrigoTomeES opened 2 years ago

RodrigoTomeES commented 2 years ago

Hi,

It would be awesome to have the possibility to convert SVG to JSX like in this website https://svg2jsx.com/. It would also be nice to be able to turn it into an arrow function.

imagen
export const Heart = ({
  className = defaultProps.className,
  width = defaultProps.width,
  height = defaultProps.height,
  fill = 'none',
  stroke = defaultProps.fill,
}: IconTypes): JSX.Element => (
  <svg
    className={className}
    width={width}
    height={height}
    viewBox="0 0 20 20"
    fill="none"
    xmlns="http://www.w3.org/2000/svg"
  >
    <path
      d=""
      fill={fill}
      stroke={stroke}
      stroke-width="1.5"
    />
  </svg>
);

Thanks!

veler commented 3 months ago

Hi,

DevToysMac is now archived and deprecated. We just released DevToys 2.0 for Windows, Mac and Linux. This issue may or may have not been addressed in the new version. If the issue persist, we encourage to open a new issue on https://github.com/DevToys-app/DevToys or https://github.com/DevToys-app/DevToys.Tools

See more information about DevToys 2.0 here: https://devtoys.app/blog/announcing-devtoys-2.0-preview