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