-
Notifications
You must be signed in to change notification settings - Fork 97
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
Any plan to allow user to create custom plugins ? #465
Comments
I am open to it. There is already quite a lot you can achieve just with https://ladle.dev/docs/providers#ladle-context
Can you document in detail what this integration would look like, including what APIs Ladle should expose/add? |
We can imagine an API like in the storybook to register custom addon in the bottom bar and display custom panel component on open
For my case (figma addon) I will display inside the panel and iframe linked to my figma in order to simplify the review of the designers. |
I created a package to inject buttons into the addon bar so that they appear the same as the Ladle built-in addons do. If you would like to use it, here's the repo https://github.com/hiddenist/ladle-inject-custom-addons |
@hiddenist nice, using your lib + https://ladle.dev/docs/providers#ladle-context is basically what the built-in addons are today we could maybe inline your lib into Ladle directly since it's pretty lightweight integration and opens a lot of possibilities when it comes adding more features into Ladle |
@tajo Certainly! I would be glad if this could be officially incorporated into Ladle. I've had pretty good success with this so far, though I had to chase down a strange bug on the built bundle when using MUI for the button icons after upgrading from v2 to v3/v4 🤷🏻 The add-ons that I'm using in my private project could also probably be useful as official add-ons, too. I have a theme color selector, and one that collapses/expands the story sidebar. |
Is your feature request related to a problem? Please describe.
I would like to add a plugin for figma preview
Describe the solution you'd like
The best option would be to add the possibility to create custom plugins for ladle
Thanks you for the job you are doing on this project
The text was updated successfully, but these errors were encountered: