79109896

Date: 2024-10-21 11:52:34
Score: 1.5
Natty:
Report link

I saw your problems and I leave my opinion. To dynamically control argTypes in Storybook, you can explore using the dependsOn feature or a custom function with the control property. This setup lets you adjust the available options based on another control’s value.

But, as of October 2023, Storybook doesn’t offer a direct way to handle dynamic options within argTypes. But don’t worry! You can achieve similar results by using decorators in your stories.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Viktor Nikitin