UNPKG

@svgr/babel-plugin-svg-dynamic-title

Version:

Transform SVG by adding a dynamic title element

17 lines (14 loc) 328 B
import { NodePath, types } from '@babel/core'; type tag = 'title' | 'desc'; interface Options { tag: tag | null; } interface State { opts: Options; } declare const plugin: () => { visitor: { JSXElement(path: NodePath<types.JSXElement>, state: State): void; }; }; export { Options, plugin as default };