All Projects → chromaui → storybook-addon-outline

chromaui / storybook-addon-outline

Licence: MIT license
A storybook addon for visually debugging CSS layout and alignment

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

⚠️ MOVED: This addon was moved to the Storybook monorepo

Storybook Addon Outline (moved)

Storybook Addon Outline can be used for visually debugging CSS layout and alignment inside the preview in Storybook. Based on Pesticide, it draws outlines around every single element in the preview pane.

React Storybook Screenshot

Getting Started

Requires Storybook 6.1 or later. Install the latest with npx sb upgrade --prerelease

First, install the addon

npm i -D storybook-addon-outline

Then, add following content to .storybook/main.js:

module.exports = {
  addons: ['storybook-addon-outline'],
};

Usage

Click on the outline button in the toolbar to toggle the outlines.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].