@svgr/babel-plugin-transform-svg-component
- Version 8.0.0
- Published
- 32.8 kB
- No dependencies
- MIT license
Install
npm i @svgr/babel-plugin-transform-svg-component
yarn add @svgr/babel-plugin-transform-svg-component
pnpm add @svgr/babel-plugin-transform-svg-component
Overview
Transform SVG into component
Index
Functions
function plugin
plugin: ( _: ConfigAPI, opts: Options) => { visitor: { Program(path: NodePath<types.Program>): void } };
Interfaces
interface Options
interface Options {}
property descProp
descProp?: boolean;
property expandProps
expandProps?: boolean | 'start' | 'end';
property exportType
exportType?: 'named' | 'default';
property importSource
importSource?: string;
property jsxRuntime
jsxRuntime?: 'automatic' | 'classic';
property jsxRuntimeImport
jsxRuntimeImport?: JSXRuntimeImport;
property memo
memo?: boolean;
property namedExport
namedExport?: string;
property native
native?: boolean;
property ref
ref?: boolean;
property state
state: State;
property template
template?: Template;
property titleProp
titleProp?: boolean;
property typescript
typescript?: boolean;
interface Template
interface Template {}
call signature
(variables: TemplateVariables, context: TemplateContext): | types.Statement | types.Statement[];
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (1)
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-plugin-transform-svg-component
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@svgr/babel-plugin-transform-svg-component)
- HTML<a href="https://www.jsdocs.io/package/@svgr/babel-plugin-transform-svg-component"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3691 ms. - Missing or incorrect documentation? Open an issue for this package.