UNPKG

@svgr/babel-plugin-svg-em-dimensions

Version:

Transform SVG to use em-based dimensions

14 lines (11 loc) 334 B
import { ConfigAPI, NodePath, types } from '@babel/core'; interface Options { width: number | string; height: number | string; } declare const plugin: (_: ConfigAPI, opts: Options) => { visitor: { JSXOpeningElement(path: NodePath<types.JSXOpeningElement>): void; }; }; export { Options, plugin as default };