mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-01 05:05:25 +08:00
18 lines
352 B
JavaScript
18 lines
352 B
JavaScript
import { storiesOf } from '@storybook/html';
|
|
import { withNotes } from '@storybook/addon-notes';
|
|
|
|
storiesOf('Addons|Notes', module)
|
|
.addDecorator(withNotes)
|
|
.add(
|
|
'Simple note',
|
|
() =>
|
|
`<p>
|
|
<strong>
|
|
This is a fragment of HTML
|
|
</strong>
|
|
</p>`,
|
|
{
|
|
notes: 'My notes on some bold text',
|
|
}
|
|
);
|