​​React​SVG,SVGR,TypeScript,Vite,vite-plugin-svgr

Thumbnail of post image 002

Vite で SVG を import すると URL の文字列になります。vite-plugin-svgr を入れて ?react を付けると React コンポーネントになり、アイコンの色を文字色に合わせたり、大きさを props ...