JSPM

@storybook/addon-backgrounds

0.0.0-pr-30753-sha-a8450d77
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6696520
  • Score
    100M100P100Q221383F
  • License MIT

Switch backgrounds to view components in different settings

Package Exports

    Readme

    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.