Skip to content

refactor: simplify controls definitions

Paul Gascou-Vaillancourt requested to merge cleanup-storybook-apis into main

What does this MR do?

This rewrites a few code bits to drop deprecated Storybook APIs.

  • Importing from @storybook/addon-docs/blocks was deprecated in favor of importing from @storybook/addon-docs directly.
  • Controls' options can be set on the arg type directly.
  • Controls' type can be passed as a string on the control property directly rather than on control.type.

Additionally this removes an obsolete addon registration as we have removed the storybook-readme addon recently.

Edited by Paul Gascou-Vaillancourt

Merge request reports