1
0
mirror of https://github.com/storybookjs/storybook.git synced 2025-04-05 16:11:33 +08:00
storybook/examples/ember-cli/stories/addon-backgrounds.stories.js

29 lines
537 B
JavaScript

import hbs from 'htmlbars-inline-precompile';
export default {
title: 'Addon/Backgrounds',
parameters: {
backgrounds: [
{ name: 'light', value: '#eeeeee' },
{ name: 'dark', value: '#222222', default: true },
],
},
};
export const story1 = () => ({
template: hbs`<button>You should be able to switch backgrounds for this story</button>`,
});
story1.story = {
name: 'story 1',
};
export const story2 = () => ({
template: hbs`<button>This one too!</button>`,
});
story2.story = {
name: 'story 2',
};