2.0.3 • Published 3 years ago
@balajmarius/svg2jsx v2.0.3
svg2jsx 🌜
Transform SVG into valid JSX
transform(svg
, config
)
Parameters
- svg
String
The SVG string to be transformed - config
Map
- type
functional | class
The type of the resulting component - jsxSingleQuote
Boolean
Either double or single quotes in JSX attributes
- type
Returns
Promise<String>
JSX string