Overview
While the Storybook community offers over 250 addons, you can also build one tailored to your specific needs. This guide introduces you to the Addon Kit and APIs, along the way you will build an addon from scratch.
Table of Contents- 1IntroductionThe anatomy of an addon
- 2SetupGet started with the Addon Kit
- 3Register addonBuild the addon UI and register it in Storybook
- 4Track stateManage addon state across the Manager and Preview
- 5DecoratorsInteracting with the stories
- 6PresetEnable Outline for every story
- 7Add to catalogShare your Storybook addon with the community
- 8ConclusionHelp automate and extend Storybook
What you'll build
Follow along as we code the Outline addon—used for visually debugging CSS layout and alignment. It adds a toolbar button that outlines all UI elements, making it easy to verify positioning and placement at a glance.
Author
Varun Vachhar
Storybook DX