{"library":"gatsby-plugin-react-svg","type":"library","category":null,"description":"A Gatsby plugin that integrates svg-react-loader into the webpack configuration, enabling import of SVG files as React components. Version 3.3.0 supports Gatsby v2 through v5. It automatically handles exclusion of SVG rules from the default url-loader when include/exclude patterns are specified. Differentiators include support for custom webpack rule options, SVG prop filtering via omitKeys, and compatibility with both inline SVG imports for React and regular SVG imports for CSS. Maintained with moderate release cadence.","language":"javascript","status":"active","version":"3.3.0","tags":["javascript","gatsby","svg","react","gatsby-plugin"],"last_verified":"Wed May 27","install":[{"cmd":"npm install gatsby-plugin-react-svg","imports":["{\n  resolve: 'gatsby-plugin-react-svg',\n  options: {\n    rule: {\n      include: /assets/\n    }\n  }\n}","import Icon from './path/assets/icon.svg'; // renders as <Icon />","declare module '*.svg' {\n  const content: any;\n  export default content;\n}","import Icon from '-!svg-react-loader?props[]=className:w-4 h-4!../icons/Fork.inline.svg';"]},{"cmd":"yarn add gatsby-plugin-react-svg","imports":[]},{"cmd":"pnpm add gatsby-plugin-react-svg","imports":[]}],"homepage":null,"github":"https://github.com/jacobmischka/gatsby-plugin-react-svg","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/gatsby-plugin-react-svg","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/gatsby-plugin-react-svg/compatibility"}}