2018-05-03 02:03:30 +03:00
|
|
|
import { storiesOf } from '@storybook/html';
|
|
|
|
|
2018-05-29 11:45:55 +10:00
|
|
|
import { withBackgrounds } from '@storybook/addon-backgrounds';
|
2018-05-03 02:03:30 +03:00
|
|
|
|
|
|
|
storiesOf('Addons|Backgrounds', module)
|
|
|
|
.addDecorator(
|
2018-05-29 11:45:55 +10:00
|
|
|
withBackgrounds([
|
2018-05-03 02:03:30 +03:00
|
|
|
{ name: 'twitter', value: '#00aced' },
|
|
|
|
{ name: 'facebook', value: '#3b5998', default: true },
|
|
|
|
])
|
|
|
|
)
|
|
|
|
.add(
|
|
|
|
'story 1',
|
|
|
|
() =>
|
|
|
|
'<span style="color: white">You should be able to switch backgrounds for this story</span>'
|
|
|
|
)
|
|
|
|
.add('story 2', () => '<span style="color: white">This one too!</span>');
|