import { storiesOf, html, action } from '@open-wc/storybook'; import '../lion-select.js'; storiesOf('Forms|', module) .add( 'Default', () => html`
Favorite color
`, ) .add( 'Disabled', () => html`
Favorite color
`, ) .add( 'Pre selected', () => html`
Favorite color
`, ) .add('Validation', () => { const submit = () => { const form = document.querySelector('#form'); if (form.errorState === false) { action('serializeGroup')(form.serializeGroup()); } }; return html`
`; });