Skip to content

Commit

Permalink
Use Storybook addons v4 and webpack v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Cody Price authored and Cody Price committed Dec 17, 2018
1 parent 0358b57 commit 82b5802
Show file tree
Hide file tree
Showing 3 changed files with 334 additions and 79 deletions.
22 changes: 22 additions & 0 deletions README.md
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';
```
4 changes: 2 additions & 2 deletions package.json
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",
Expand All @@ -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",
Expand Down
Loading

0 comments on commit 82b5802

Please sign in to comment.