mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-22 05:02:18 +08:00
27 lines
539 B
JavaScript
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';
|