Have ideas to improve npm?Join in the discussion! »

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

    6.2.9 • 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:

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

    Usage

    The usage is documented in the documentation.

    Install

    npm i @storybook/addon-backgrounds

    DownloadsWeekly Downloads

    1,119,472

    Version

    6.2.9

    License

    MIT

    Unpacked Size

    58.8 kB

    Total Files

    59

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar