Integrate Pinia and Storybook
Pinia is an intuitive, type safe, light and flexible Store for Vue This recipe shows you how to get the most out of Pinia in Storybook.
.storybook/preview.ts, import and initialize Pinia.
Import Storybook's setup function that lets you register tools with Storybook's Vue app instance.
Now you're ready to use Pinia with Storybook. 🎉 If you use Pinia at work, we'd love your feedback on the Pinia + Storybook experience.
Join the maintainers and our thriving community in Discord.