import { storiesOf, html } from '@open-wc/demoing-storybook'; import { bug12 } from '@lion/icon/stories/icons/bugs-collection.js'; import '@lion/icon/lion-icon.js'; import '@lion/form/lion-form.js'; import '@lion/input/lion-input.js'; import '../lion-button.js'; storiesOf('Buttons|Button', module) .add( 'Used on its own', () => html`
Supports the following use cases:
Important notes:
@click on lion-button
and
@submit on form
are triggered by these use cases. We strongly encourage you to listen to the submit
handler if your goal is to do something on form-submit
@submit with event.preventDefault(). Adding it on the
lion-button is not enough.