An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# gatsby-plugin-svg-sprite

[![npm version](https://badge.fury.io/js/gatsby-plugin-svg-sprite.svg)](https://badge.fury.io/js/gatsby-plugin-svg-sprite)
[![Build Status](https://travis-ci.org/marcobiedermann/gatsby-plugin-svg-sprite.svg?branch=master)](https://travis-ci.org/marcobiedermann/gatsby-plugin-svg-sprite)
[![dependencies Status](https://img.shields.io/david/marcobiedermann/gatsby-plugin-svg-sprite.svg)](https://david-dm.org/marcobiedermann/gatsby-plugin-svg-sprite)
[![devDependencies Status](https://img.shields.io/david/dev/marcobiedermann/gatsby-plugin-svg-sprite.svg)](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