https://github.com/marcobiedermann/gatsby-plugin-svg-sprite
💟 svg-sprite plugin for Gatsby
https://github.com/marcobiedermann/gatsby-plugin-svg-sprite
Last synced: 3 months ago
JSON representation
💟 svg-sprite plugin for Gatsby
- Host: GitHub
- URL: https://github.com/marcobiedermann/gatsby-plugin-svg-sprite
- Owner: marcobiedermann
- License: mit
- Created: 2017-12-26T17:12:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T00:53:56.000Z (almost 3 years ago)
- Last Synced: 2025-08-09T06:43:08.946Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 250 KB
- Stars: 15
- Watchers: 2
- Forks: 6
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gatsby-plugin-svg-sprite
[](https://badge.fury.io/js/gatsby-plugin-svg-sprite)
[](https://travis-ci.org/marcobiedermann/gatsby-plugin-svg-sprite)
[](https://david-dm.org/marcobiedermann/gatsby-plugin-svg-sprite)
[](https://david-dm.org/marcobiedermann/gatsby-plugin-svg-sprite?type=dev)
[svg-sprite](https://github.com/kisenka/svg-sprite-loader) plugin for Gatsby
## Table of contents
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
## Installation
Install `gatsby-plugin-svg-sprite` via npm.
```sh
npm install gatsby-plugin-svg-sprite --save
```
Add `gatsby-plugin-svg-sprite` to your plugins in `gatsby-config.js`.
```js
module.exports = {
plugins: ['gatsby-plugin-svg-sprite'],
}
```
## Usage
```js
import twitterIcon from './path/to/twitter.svg'
const Icon = () => (
)
```
## License
[MIT License](LICENSE)
Copyright (c) 2018 Marco Biedermann