@storybook/addon-outline
TypeScript icon, indicating that this package has built-in type declarations

8.0.9 • Public • Published

Storybook Addon Outline

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

Usage

Requires Storybook 6.1 or later. Outline 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-outline

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

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

You can now click on the outline button or press the o key in the toolbar to toggle the outlines.

Package Sidebar

Install

npm i @storybook/addon-outline

Weekly Downloads

4,533,055

Version

8.0.9

License

MIT

Unpacked Size

13.9 kB

Total Files

9

Last publish

Collaborators

  • jreinhold
  • thafryer
  • shaunlloyd
  • kylegach
  • ndelangen
  • shilman
  • alexandrebodin
  • hypnosphi
  • danielduan
  • igor-dv
  • pksunkara
  • tmeasday
  • gongreg
  • domyen
  • usulpro
  • kylesuss
  • ghengeveld
  • pago
  • dandean
  • mrmckeb
  • dannyhw
  • winkervsbecks
  • amalik2
  • phated
  • yannbf
  • dylanpiercey
  • darleendenno