1
0
Fork 0
thinking-in-stories-compone.../app/components/contact-card.stories.js
Ava Gaiety Wroten 756ba24d21 Initial commit
2022-04-05 12:26:52 -05:00

25 lines
546 B
JavaScript

import { hbs } from 'ember-cli-htmlbars';
export default {
title: 'Contact Card',
argTypes: {
isAdmin: { control: 'boolean' },
},
};
const Template = (args) => ({
template: hbs`<ContactCard @name={{this.name}} @avatar={{this.avatar}} @isAdmin={{this.isAdmin}} />`,
context: args, // context = args = this
});
export const Standard = Template.bind({});
Standard.args = {
name: 'Zoey',
avatar: 'https://svgshare.com/i/fVd.svg',
};
export const Admin = Template.bind({});
Admin.args = {
...Standard.args,
isAdmin: true,
};