mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-26 05:02:32 +08:00
16 lines
447 B
JavaScript
16 lines
447 B
JavaScript
import { storiesOf } from '@storybook/html';
|
|
|
|
storiesOf('Addons|Backgrounds', module)
|
|
.addParameters({
|
|
backgrounds: [
|
|
{ name: 'light', value: '#eeeeee' },
|
|
{ name: 'dark', value: '#222222', 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>');
|