{"library":"vite-plugin-svgr-component","type":"library","category":null,"description":"A Vite plugin that imports SVG files as React components using SVGR, with zero-config defaults and full configurability. v1.0.1 is the current stable version, with slow release cadence. It automatically transforms all SVG imports to React components without needing a query string like ?component, different from other SVGR Vite plugins. Ships TypeScript types, uses SVGO for optimization, and supports micromatch patterns to filter which SVGs are transformed. Requires peer dependencies: react >= 17.0.2 and vite >= 2.7.13.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript","vite","plugin","svgr","react","svg","component","typescript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install vite-plugin-svgr-component","imports":["import { svgrComponent } from 'vite-plugin-svgr-component'","import CustomIcon from './icon.svg'","/// <reference types=\"vite-plugin-svgr-component/client\" />"]},{"cmd":"yarn add vite-plugin-svgr-component","imports":[]},{"cmd":"pnpm add vite-plugin-svgr-component","imports":[]}],"homepage":null,"github":"https://github.com/chempogonzalez/vite-plugin-svgr-component","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-plugin-svgr-component","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}