Sorting controls by argTypes order #24524
Replies: 1 comment 2 replies
-
You can sort the order of controls by using For example:
|
Beta Was this translation helpful? Give feedback.
-
You can sort the order of controls by using For example:
|
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I have the following
argTypes
in ameta
object of my story file:However, this order is not reflected on the Storybook page under Controls (which is expected at this time).
The only ways to sort controls appear to be 1) alphabetically, 2) required first, or 3) not at all, none of which really work for me.
Describe the solution you'd like
It would be nice if there was an option to have the order of controls in the Controls tab of the UI match the order they are listed in
argTypes
- perhaps a newparameters.controls.sort
setting likebyArgTypes
.Describe alternatives you've considered
The existing sort options -
alpha
,requiredFirst
,none
- none of which are idealAre you able to assist to bring the feature to reality?
yes, I can
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions