docz-plugin-svg-sprite-loader
v0.1.2
Published
A plugin to use svg-sprite-loader with docz
Downloads
3
Readme
docz-plugin-svg-sprite-loader
Allows you to use svg-sprite-loader in your Docz config.
This currently replaces all other svg loaders.
Install
$ yarn add docz-plugin-svg-sprite-loader
Usage
import { svgSpriteLoader } from 'docz-plugin-svg-sprite-loader';
export default {
plugins: [svgSpriteLoader()],
};
Options
Options can be passed into the function as the first argument. See svg-sprite-loader for the fill list of options.
import { svgSpriteLoader } from 'docz-plugin-svg-sprite-loader';
export default {
plugins: [svgSpriteLoader({
symbolId: 'icon-'
})],
};