1
0
mirror of https://github.com/storybookjs/storybook.git synced 2025-04-01 05:05:25 +08:00
storybook/examples/html-kitchen-sink/stories/addon-notes.stories.js
2018-05-02 11:53:38 +03:00

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',
}
);