MoaKit
All tools

SVG to JSX

Turn SVG into a React component with attributes like class fixed for you.

만들 파일
내보내기 방식
TSX
미리보기

모든 처리는 이 브라우저 안에서만 일어나요. SVG는 업로드되지 않아요.

What is SVG to JSX?

Turns SVG code into JSX you can use directly in React. It changes class to className and attributes to camelCase.

How to use

  1. Paste the SVG code.
  2. Click convert.
  3. Copy the component code.

Tips

  • If you want to change the color through props, set the fill value to currentColor.