@svgr/babel-preset
- Version 8.1.0
- Published
- 14.1 kB
- 8 dependencies
- MIT license
Install
npm i @svgr/babel-preset
yarn add @svgr/babel-preset
pnpm add @svgr/babel-preset
Overview
SVGR preset that apply transformations from config
Index
Functions
function plugin
plugin: (_: ConfigAPI, opts: Options) => { plugins: any[] };
Interfaces
interface Options
interface Options extends Options$1 {}
property descProp
descProp?: boolean;
property dimensions
dimensions?: boolean;
property expandProps
expandProps?: boolean | 'start' | 'end';
property icon
icon?: boolean | string | number;
property native
native?: boolean;
property ref
ref?: boolean;
property replaceAttrValues
replaceAttrValues?: { [key: string]: string;};
property svgProps
svgProps?: { [key: string]: string;};
property titleProp
titleProp?: boolean;
Package Files (1)
Dependencies (8)
- @svgr/babel-plugin-add-jsx-attribute
- @svgr/babel-plugin-remove-jsx-attribute
- @svgr/babel-plugin-remove-jsx-empty-expression
- @svgr/babel-plugin-replace-jsx-attribute-value
- @svgr/babel-plugin-svg-dynamic-title
- @svgr/babel-plugin-svg-em-dimensions
- @svgr/babel-plugin-transform-react-native-svg
- @svgr/babel-plugin-transform-svg-component
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (1)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@svgr/babel-preset
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@svgr/babel-preset)
- HTML<a href="https://www.jsdocs.io/package/@svgr/babel-preset"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2815 ms. - Missing or incorrect documentation? Open an issue for this package.