🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

@storybook/addon-measure

Package Overview
Dependencies
Maintainers
12
Versions
1454
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/addon-measure

Inspect layouts by visualizing the box model

Source
npmnpm
Version
0.0.0-pr-30162-sha-fc2610f4
Version published
Weekly downloads
5M
-5.2%
Maintainers
12
Weekly downloads
 
Created
Source

Storybook Addon Measure

Storybook addon for inspecting layouts and visualizing the box model.

  • Press the m key to enable the addon:

  • Hover over a DOM node

  • Storybook will display the dimensions of the selected element—margin, padding, border, width and height—in pixels.

Usage

This addon requires Storybook 6.3 or later. Measure 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-measure

Add "@storybook/addon-measure" to the addons array in your .storybook/main.js:

export default {
  addons: ['@storybook/addon-measure'],
};

Inspiration

Keywords

storybook-addons

FAQs

Package last updated on 09 Jan 2025

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