Norbert de Langen 9d198e55fa
Merge pull request #19077 from storybookjs/chore/rename-prepare
chore: rename prepare script to prep
2022-09-01 21:16:33 +02:00
..
fix
2022-07-26 09:40:04 +02:00
2022-07-28 20:19:28 +01:00

Storybook Addon Backgrounds

Storybook Addon Backgrounds can be used to change background colors inside the preview in Storybook.

Framework Support

React Storybook Screenshot

Installation

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

Configuration

Then, add following content to .storybook/main.js:

module.exports = {
  addons: ['@storybook/addon-backgrounds'],
};

Usage

The usage is documented in the documentation.