-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Storybook addons v4 and webpack v4
- Loading branch information
Cody Price
authored and
Cody Price
committed
Dec 17, 2018
1 parent
0358b57
commit 82b5802
Showing
3 changed files
with
334 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,24 @@ | ||
# storybook-addon-goto-iframe | ||
Storybook.js addon to easily navigate directly to the current story's iframe! | ||
|
||
## Installation | ||
|
||
### For Storybook v4 and Webpack v4 | ||
|
||
```sh | ||
yarn add -D storybook-addon-goto-iframe | ||
``` | ||
|
||
### For Storybook v3 and Webpack v3 | ||
|
||
```sh | ||
yarn add -D storybook-addon-goto-iframe@^1.0.0 | ||
``` | ||
|
||
## Usage | ||
|
||
Install and then add the following line to your `.storybook/addons.js` file: | ||
|
||
```js | ||
import 'storybook/addon-goto-iframe/register'; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "storybook-addon-goto-iframe", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"main": "dist/register.js", | ||
"author": "Cody Price <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -22,7 +22,7 @@ | |
"registry": "https://registry.npmjs.org" | ||
}, | ||
"dependencies": { | ||
"@storybook/addons": "^3.4.11" | ||
"@storybook/addons": "^4.1.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.2.0", | ||
|
Oops, something went wrong.