# iconSvgTemplates library

This library exports all the icon templates using inline svg. The templates are generated based on the npm version of SLDS by parsing the sprites.

# How use this library?

This library could be use to inject the templates at the application level via configProvider. In this case lightning-icon is going to consume the templates rendering the SVGs inline.

```js
import configProviderService from 'lightning/configProvider';
import iconSvgTemplates from 'lightning/iconSvgTemplates';

configProviderService({
    iconSvgTemplates,
});
```

# When/How the templates are generated?

The templates are generated by running the node script generateTemplates.js. This script go a parse each svg sprite installed in @salesforce-ux/design-system module. The generatedTemplates folder is ignore by git, hence the script has to run postinstall.



