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

@storybook/addon-outline

Package Overview
Dependencies
Maintainers
11
Versions
1069
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/addon-outline

Outline all elements with CSS to help with layout placement and alignment

  • 0.0.0-pr-28920-sha-0a35a32c
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.1M
decreased by-17.32%
Maintainers
11
Weekly downloads
 
Created

What is @storybook/addon-outline?

The @storybook/addon-outline package is a Storybook addon that allows developers to add an outline around every DOM element in the Storybook UI. This is particularly useful for visual debugging, helping to see the boundaries of each component and ensuring that layouts are behaving as expected. It can be toggled on and off within the Storybook interface.

What are @storybook/addon-outline's main functionalities?

Outline Toggle

This code sample demonstrates how to programmatically toggle the outline visibility using the addon's API. It registers the addon and uses the channel to emit an event that toggles the outline.

import { addons } from '@storybook/addons';
import { ADDON_ID, TOOL_ID } from '@storybook/addon-outline';

addons.register(ADDON_ID, (api) => {
  const channel = addons.getChannel();
  // Toggle the outline visibility
  channel.emit(TOOL_ID, true);
});

Other packages similar to @storybook/addon-outline

Keywords

FAQs

Package last updated on 22 Aug 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