area17 / blast

Storybook for Laravel Blade 🚀
https://dev.to/area17/getting-started-with-blast-storybook-for-laravel-blade-c5c
Apache License 2.0
261 stars 38 forks source link

Feature request: manageable addons #115

Open jim-syn opened 4 months ago

jim-syn commented 4 months ago

We’re currently looking to add a data-theme switcher addon for use with DaisyUI, but would it be in anyway possible to add the ability to manage storybook addons, so that you could add your own?

mrtimbrook commented 4 months ago

This is actually something we've been looking into. Hopefully it's something we can work into one of the next releases

markkes commented 4 months ago

Would love this feature, keep us posted!

mrtimbrook commented 3 months ago

I'm working on a more complete solution but I recently merged #107 to the 1.x branch which includes the blast:publish-storybook-config task. This, unsurprisingly, publishes the .storybook directory from the blast vendor dir into your project dir which means you can install storybook addons in your project and add them to the addons array in .storybook/main.js.

As of right now it only supports addons that don't require any updates to stories (this is what I'm working on at the moment) but it should allow you to use the addon you've linked there. You can either update the global_types data directly in .storybook/preview.js or using storybook_global_types in config/blast.php.