Socket
Socket
Sign inDemoInstall

@storybook/manager-api

Package Overview
Dependencies
57
Maintainers
26
Versions
536
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @storybook/manager-api

Core Storybook Manager API & Context


Version published
Weekly downloads
5.1M
increased by0.41%
Maintainers
26
Install size
8.26 MB
Created
Weekly downloads
 

Package description

What is @storybook/manager-api?

The @storybook/manager-api 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 provides APIs for managing Storybook's UI and its addons, allowing developers to customize and extend the Storybook manager interface programmatically.

What are @storybook/manager-api's main functionalities?

Addons registration

This feature allows developers to register custom addons with Storybook. The code sample demonstrates how to register an addon named 'my-addon' using the manager API.

import { addons } from '@storybook/manager-api';

addons.register('my-addon', (api) => {
  // Do something with the Storybook API
});

Add panel

This feature enables the addition of custom panels to the Storybook UI. The code sample shows how to add a new panel to the Storybook interface within a registered addon.

import { addons } from '@storybook/manager-api';

addons.register('my-addon', (api) => {
  addons.addPanel('my-addon/panel', {
    title: 'My Panel',
    render: ({ active, key }) => (
      // Render your panel content here
    ),
  });
});

Other packages similar to @storybook/manager-api

Changelog

Source

8.0.9

  • Addon-docs: Fix MDX compilation when using @vitejs/plugin-react-swc with plugins - #26837, thanks @JReinhold!
  • CSF: Fix typings for control and other properties of argTypes - #26824, thanks @kasperpeulen!
  • Controls: Fix crashing when docgen extraction partially fails - #26862, thanks @yannbf!
  • Doc Tools: Signature Type Error Handling - #26774, thanks @ethriel3695!
  • Next.js: Move sharp into optional deps - #26787, thanks @shuta13!
  • Nextjs: Support next 14.2 useParams functionality - #26874, thanks @yannbf!
  • Test: Remove chai as dependency of @storybook/test - #26852, thanks @kasperpeulen!
  • UI: Fix sidebar search hanging when selecting a story in touch mode - #26807, thanks @JReinhold!

Keywords

FAQs

Last updated on 22 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc