Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: manageable addons #115

Open
jim-syn opened this issue Mar 8, 2024 · 3 comments
Open

Feature request: manageable addons #115

jim-syn opened this issue Mar 8, 2024 · 3 comments

Comments

@jim-syn
Copy link

jim-syn commented Mar 8, 2024

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
Copy link
Collaborator

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

@markkes
Copy link

markkes commented Mar 11, 2024

Would love this feature, keep us posted!

@mrtimbrook
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants