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;
|
2020-05-25 13:32:05 +08:00
|
|
|
Button.parameters = {
|
|
|
|
storySource: {
|
|
|
|
source: `source: ${button}`,
|
2020-01-20 13:18:10 -05:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const SimpleStory = () =>
|
|
|
|
`<p>
|
|
|
|
<strong>
|
|
|
|
This is a fragment of HTML
|
|
|
|
</strong>
|
|
|
|
</p>`;
|
2020-05-25 13:32:05 +08:00
|
|
|
SimpleStory.storyName = 'Very simple story';
|