@storybook/addon-backgrounds
TypeScript icon, indicating that this package has built-in type declarations

7.6.17 • Public • Published

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.

Package Sidebar

Install

npm i @storybook/addon-backgrounds

Weekly Downloads

4,791,920

Version

7.6.17

License

MIT

Unpacked Size

13.5 kB

Total Files

10

Last publish

Collaborators

  • kasperpeulen
  • valentinpalkovic
  • jreinhold
  • shilman
  • ndelangen
  • hypnosphi
  • tmeasday
  • igor-dv