tajo / ladle

🥄 Develop, test and document your React story components faster.
https://www.ladle.dev
MIT License
2.51k stars 86 forks source link

Controls addon UX #288

Open Hurtak opened 1 year ago

Hurtak commented 1 year ago

Is your feature request related to a problem? Please describe. This will probably vary between apps and how people are used to use storybook but from what I have seen the add-ons usage was like this

If this usage patterns are correct and not just some isolated outliers (or just me having wrong idea how stories are used) I think it could make sense, from UX point of view, to give the controls add-on more space/priority in the UI, compared to other add-ons.

Describe the solution you'd like For example storybook has dedicated panel in layout for controls that is always visible unless you minimalize it, so we could do something along these lines?

Describe alternatives you've considered Or we could just have some simple adjustments like "if there are controls for given story, open by default the controls add-on panel

TLDR: If most stories use controls, it is little annoying that you need to re-open controls panel whenever you switch between stories

tajo commented 1 year ago

Yea, controls are probably the most used addon.

Or we could just have some simple adjustments like "if there are controls for given story, open by default the controls add-on panel

This could be an opt-in part of config for this addon. Maybe even with additional options:

Might make sense to also consider some redesign. I didn't put much effort into the styling of controls initially.