🌜
svg2jsx Transform SVG into valid JSX
svg
, config
)
transform(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