Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@storybook/manager

Package Overview
Dependencies
Maintainers
11
Versions
821
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/manager

Core Storybook UI

  • 8.3.0-beta.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
11
Created

What is @storybook/manager?

The @storybook/manager package is part of the Storybook ecosystem, which is a tool for developing UI components in isolation for React, Vue, Angular, and more. This particular package is responsible for managing the Storybook UI, including the navigation, toolbar, and addons panel. It allows developers to customize and extend the Storybook interface to better suit their development workflow.

What are @storybook/manager's main functionalities?

Customizing Storybook's UI

This code demonstrates how to customize the Storybook UI by applying a custom theme. Developers can create a theme that matches their branding or preferences and apply it using the `addons.setConfig` method.

import { addons } from '@storybook/addons';
import yourTheme from './yourTheme';

addons.setConfig({
  theme: yourTheme,
});

Adding Toolbar Items

This code snippet shows how to add a custom button to the Storybook toolbar. Developers can use this to add tools or actions that are specific to their development process, enhancing productivity.

import { addons } from '@storybook/addons';
import { types } from '@storybook/addons';

addons.register('my-addon', () => {
  addons.add('my-addon/button', {
    type: types.TOOL,
    title: 'My button',
    match: ({ viewMode }) => !!(viewMode && viewMode.match(/^(story|docs)$/)),
    render: () => (
      /* render your button here */
    ),
  });
});

Other packages similar to @storybook/manager

Keywords

FAQs

Package last updated on 02 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc