Knobs URL migration notes

This commit is contained in:
Michael Shilman 2018-10-16 06:17:41 +08:00
parent 3af966b4f8
commit 254f360375

View File

@ -49,6 +49,12 @@ import { number } from "@storybook/addon-knobs";
4.0 also reversed the order of addon-knob's `select` knob keys/values, which had been called `selectV2` prior to this breaking change. See the knobs [package README](https://github.com/storybooks/storybook/blob/master/addons/knobs/README.md#select) for usage.
### Knobs URL parameters
Addon-knobs no longer updates the URL parameters interactively as you edit a knob. This is a UI change but it shouldn't break any code because old URLs are still supported.
In 3.x, editing knobs updated the URL parameters interactively. The implementation had performance and architectural problems. So in 4.0, we changed this to a "copy" button tp the addon which generates a URL with the updated knob values and copies it to the clipboard.
### Keyboard shortcuts moved
- Addon Panel to `Z`