Merge pull request #11925 from McKenzieJDan/fix/doc-controls

Fix install command for addon-controls
This commit is contained in:
Michael Shilman 2020-08-12 18:11:54 +08:00 committed by GitHub
commit 82d9c99b2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@
Controls is part of [essentials](https://storybook.js.org/docs/react/essentials/introduction) and so is installed in all new Storybooks by default. If you need to add it to your Storybook, you can run:
```sh
npm i -D @storybook/addon-toolbars
npm i -D @storybook/addon-controls
```
Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/react/configure/overview#configure-your-storybook-project):