Skip to content

trustedhousesitters/docz-plugin-svg-sprite-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-'
  })],
};

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages