import { storiesOf, html, withKnobs, object, text } from '@open-wc/demoing-storybook'; import { css } from '@lion/core'; import '@lion/icon/lion-icon.js'; import '@lion/button/lion-button.js'; import '../lion-popup.js'; const popupDemoStyle = css` .demo-box { width: 200px; background-color: white; border-radius: 2px; border: 1px solid grey; margin: 250px 0 0 250px; padding: 8px; } .demo-box_placements { display: flex; flex-direction: column; width: 173px; margin: 0 auto; margin-top: 68px; } lion-popup { padding: 10px; } .demo-box__column { display: flex; flex-direction: column; } .popup { display: block; position: absolute; font-size: 16px; color: white; background-color: black; border-radius: 4px; padding: 8px; } @media (max-width: 480px) { .popup { display: none; } } `; storiesOf('Local Overlay System|Popup', module) .addDecorator(withKnobs) .add( 'Button popup', () => html`
Use the Storybook Knobs to dynamically change the popper configuration!