🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@storybook/ui

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
s

@storybook/ui

Core Storybook UI

6.5.16
latest
Version published
Weekly downloads
1.5M
1.52%
Maintainers
5
Weekly downloads
 
Created
Issues
2202

What is @storybook/ui?

The @storybook/ui package is a part of the Storybook ecosystem, which is an open-source tool for developing UI components in isolation for React, Vue, Angular, and many other frameworks. It provides the UI for Storybook, allowing developers to browse a component library, view the different states of each component, and interactively develop and test components.

What are @storybook/ui's main functionalities?

Customizable UI

This feature allows developers to customize the Storybook UI according to their preferences or branding requirements by applying a custom theme.

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

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

Navigation and Layout

Developers can configure the layout and navigation of the Storybook UI, including fullscreen mode, visibility of navigation and panels, panel positioning, sidebar animations, and keyboard shortcuts.

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

addons.setConfig({
  isFullscreen: false,
  showNav: true,
  showPanel: true,
  panelPosition: 'bottom',
  sidebarAnimations: true,
  enableShortcuts: true,
});

Toolbar and Tool Configuration

This allows for the configuration of the toolbar and tools within the Storybook UI, including setting a default panel and applying a theme from the Storybook theming package.

import { addons } from '@storybook/addons';
import { themes } from '@storybook/theming';

addons.setConfig({
  selectedPanel: 'storybook/actions/panel',
  theme: themes.dark,
});

Other packages similar to @storybook/ui

Keywords

FAQs

Package last updated on 26 Jan 2023

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