storybook/code/examples/ember-cli/stories/addon-controls.stories.js
Norbert de Langen c2bbe43d02
stage0
2022-07-21 11:24:07 +02:00

20 lines
403 B
JavaScript

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