mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-24 05:02:24 +08:00
25 lines
388 B
JavaScript
25 lines
388 B
JavaScript
|
import button from './button.html';
|
||
|
|
||
|
export default {
|
||
|
title: 'Addons/Source loader',
|
||
|
};
|
||
|
|
||
|
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',
|
||
|
};
|