Skip to content

Files

This branch is 17522 commits behind storybookjs/storybook:next.

backgrounds

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 21, 2022
Apr 26, 2023
Dec 9, 2022
Jan 30, 2023
Nov 14, 2022
Jul 26, 2022
May 19, 2023
Jul 26, 2022
Feb 14, 2023
Apr 20, 2023

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:

export default {
  addons: ['@storybook/addon-backgrounds'],
};

Usage

The usage is documented in the documentation.