Closed matt-tyas closed 2 years ago
I have used a simple node package to take the contents of src and output coop-icon-sprite.svg into the dist folder.
src
coop-icon-sprite.svg
After the package is installed this sprite would need to be imported into the project (not sure on the best way yet).
Each icon can be used using use then targetting th id of the icon in the sprite sheet: <use xlink:href="coop-icon-sprite.svg#icon-calendar"></use>
use
<use xlink:href="coop-icon-sprite.svg#icon-calendar"></use>
I have used a simple node package to take the contents of
src
and outputcoop-icon-sprite.svg
into the dist folder.After the package is installed this sprite would need to be imported into the project (not sure on the best way yet).
Each icon can be used using
use
then targetting th id of the icon in the sprite sheet:<use xlink:href="coop-icon-sprite.svg#icon-calendar"></use>