storybook/code/examples/html-kitchen-sink/stories/source-loader.stories.js
Norbert de Langen c2bbe43d02
stage0
2022-07-21 11:24:07 +02:00

27 lines
539 B
JavaScript

import button from './button.html';
const packageName = './button.html';
const componentSubtitle = `import button from '${packageName}/lib/elements/buttons';`;
export default {
title: 'Addons/Source loader',
parameters: {
componentSubtitle,
},
};
export const Button = () => button;
Button.parameters = {
storySource: {
source: `source: ${button}`,
},
};
export const SimpleStory = () =>
`<p>
<strong>
This is a fragment of HTML
</strong>
</p>`;
SimpleStory.storyName = 'Very simple story';