storybook/examples/ember-cli/stories/addon-controls.stories.js
2020-06-16 21:13:52 +08:00

20 lines
412 B
JavaScript

import { hbs } from 'ember-cli-htmlbars';
export default {
title: 'Addon/Controls',
argTypes: {
label: { type: { name: 'string' } },
},
};
const ButtonStory = (args) => ({
template: hbs`<button>{{label}}</button>`,
context: args,
});
export const Hello = ButtonStory.bind({});
Hello.args = { label: 'Hello!' };
export const Bonjour = ButtonStory.bind({});
Bonjour.args = { label: 'Bonjour!' };