2020-01-20 13:18:10 -05:00
|
|
|
import button from './button.html';
|
|
|
|
|
2020-01-20 13:43:56 -05:00
|
|
|
const packageName = './button.html';
|
|
|
|
const componentSubtitle = `import button from '${packageName}/lib/elements/buttons';`;
|
|
|
|
|
2020-01-20 13:18:10 -05:00
|
|
|
export default {
|
|
|
|
title: 'Addons/Source loader',
|
2020-01-20 13:43:56 -05:00
|
|
|
parameters: {
|
|
|
|
componentSubtitle,
|
|
|
|
},
|
2020-01-20 13:18:10 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
export const Button = () => button;
|
|
|
|
Button.story = {
|
|
|
|
parameters: {
|
|
|
|
storySource: {
|
|
|
|
source: button,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const SimpleStory = () =>
|
|
|
|
`<p>
|
|
|
|
<strong>
|
|
|
|
This is a fragment of HTML
|
|
|
|
</strong>
|
|
|
|
</p>`;
|
|
|
|
SimpleStory.story = {
|
|
|
|
name: 'Very simple story',
|
|
|
|
};
|