forked from storybookjs/storybook
-
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.
Add addon-backgrounds to polymer-cli examples
- Loading branch information
Showing
3 changed files
with
13 additions
and
0 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
11 changes: 11 additions & 0 deletions
11
examples/polymer-cli/src/stories/addon-backgrounds.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,11 @@ | ||
import { storiesOf } from '@storybook/polymer'; | ||
import backgrounds from '@storybook/addon-backgrounds'; | ||
|
||
storiesOf('Addon|Backgrounds', module) | ||
.addDecorator( | ||
backgrounds([ | ||
{ name: 'twitter', value: '#00aced', default: true }, | ||
{ name: 'facebook', value: '#3b5998' }, | ||
]) | ||
) | ||
.add('button with text', () => '<button>Click me</button>'); |