-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3965 from storybooks/tmeasday/add-params-to-optio…
…ns-addon Add params-based API to options addon
- Loading branch information
Showing
16 changed files
with
226 additions
and
220 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
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
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
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
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
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
13 changes: 13 additions & 0 deletions
13
examples/official-storybook/stories/__snapshots__/addon-options.stories.storyshot
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Storyshots Addons|Options withOptions hiding addon panel 1`] = ` | ||
<div> | ||
This story should have changed hidden the addons panel | ||
</div> | ||
`; | ||
|
||
exports[`Storyshots Addons|Options withOptions setting name 1`] = ` | ||
<div> | ||
This story should have changed the name of the storybook | ||
</div> | ||
`; |
22 changes: 22 additions & 0 deletions
22
examples/official-storybook/stories/addon-options.stories.js
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
|
||
storiesOf('Addons|Options', module) | ||
.add( | ||
'withOptions setting name', | ||
() => <div>This story should have changed the name of the storybook</div>, | ||
{ | ||
options: { | ||
name: 'Custom Storybook', | ||
}, | ||
} | ||
) | ||
.add( | ||
'withOptions hiding addon panel', | ||
() => <div>This story should have changed hidden the addons panel</div>, | ||
{ | ||
options: { | ||
showAddonPanel: false, | ||
}, | ||
} | ||
); |
Oops, something went wrong.