react-storybook-addon-backgrounds
Getting Started
npm i --save react-storybook-addon-backgrounds
Then create a file called addons.js
in your storybook config.
Add following content to it:
;;
Then write your stories like this:
;;; ;
Development
This project is built using typescript and is tested with jest. To get started, clone this repo and run the following command:
$ npm install # install node deps
To run the project locally, run:
$ npm run storybook # for storybook testing # (coming soon) $ npm run test-watch # for testing
To test the project run:
$ npm test