16 lines
447 B
JavaScript
Raw Normal View History

2018-05-03 02:03:30 +03:00
import { storiesOf } from '@storybook/html';
storiesOf('Addons|Backgrounds', module)
.addParameters({
backgrounds: [
{ name: 'light', value: '#eeeeee' },
{ name: 'dark', value: '#222222', default: true },
],
})
2018-05-03 02:03:30 +03:00
.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>');