Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kirillkurko/storybook-react-svgr
Storybook SVGR plugin for react to allow imports of .svg files
https://github.com/kirillkurko/storybook-react-svgr
Last synced: 13 days ago
JSON representation
Storybook SVGR plugin for react to allow imports of .svg files
- Host: GitHub
- URL: https://github.com/kirillkurko/storybook-react-svgr
- Owner: kirillkurko
- License: mit
- Created: 2022-04-09T09:13:06.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-13T18:09:31.000Z (over 2 years ago)
- Last Synced: 2024-12-08T19:43:20.292Z (18 days ago)
- Language: JavaScript
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Storybook React SVGR
This plugin will add the same CRA useful behaviour on storybook regarding SVG.For using it:
1. run `npm install -D @kkurko/storybook-react-svgr` or `yarn add -D @kkurko/storybook-react-svgr`.
1.just add the following plugin on your `./storybook/main.js`:```diff
module.exports = {
addons: [
+ '@kkurko/storybook-react-svgr',
]
}
```