import { document } from 'global'; import { storiesOf } from '@storybook/html'; import { action } from '@storybook/addon-actions'; import { withLinks } from '@storybook/addon-links'; import './welcome.css'; import welcome from './welcome.html'; storiesOf('Welcome', module) .addDecorator(withLinks) .add('Welcome', () => welcome); storiesOf('Demo', module) .add('heading', () => '

Hello World

') .add( 'headings', () => '

Hello World

Hello World

Hello World

Hello World

' ) .add('button', () => { const button = document.createElement('button'); button.innerHTML = 'Hello Button'; button.addEventListener('click', action('Click')); return button; });