Mohammad Asif cf937194cb Removed un-waned things 1. | 6 bulan lalu | |
---|---|---|
.. | ||
dist | 6 bulan lalu | |
README.md | 6 bulan lalu | |
jest.config.js | 6 bulan lalu | |
manager.js | 6 bulan lalu | |
package.json | 6 bulan lalu | |
preview.js | 6 bulan lalu |
Storybook Addon Backgrounds can be used to change background colors inside the preview in Storybook.
Backgrounds is part of essentials and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
npm i -D @storybook/addon-backgrounds
Then, add following content to .storybook/main.js
:
export default {
addons: ['@storybook/addon-backgrounds'],
};
The usage is documented in the documentation.