Transform SVG files into React elements.
As with most browserify transforms, you can configure it via the second argument to
or inside your
Requiring SVG files
Now you can do things like...
var React =SVG =Dog :Parrot:Horse :;moduleexports = React;
Templates are a way of ease the use of your svg's and there are three (maybe there will be more in the future, like one for symbols for example).
All the templates inherit props to allow passing things like
You can select one type as default by setting the default option to
image or to
icon and also setting a
regex string like:
This one has an
<span class="icon icon-__FILENAME_IN_KEBABCASE__> as the root.
The default one, having the
<svg> as the root.