import { storiesOf, html, withKnobs, object, text } from '@open-wc/demoing-storybook'; import { css } from '@lion/core'; import '../lion-tooltip.js'; const tooltipDemoStyle = css` .demo-box { width: 200px; background-color: white; border-radius: 2px; border: 1px solid grey; margin: 250px; padding: 8px; } .demo-box_placements { display: flex; flex-direction: column; width: 173px; margin: 0 auto; margin-top: 68px; } lion-tooltip { padding: 10px; } .demo-box__column { display: flex; flex-direction: column; } .demo-tooltip { display: block; position: absolute; font-size: 16px; color: white; background-color: black; border-radius: 4px; padding: 8px; } `; storiesOf('Overlays Specific WC|Tooltip', module) .addDecorator(withKnobs) .add( 'Button tooltip', () => html`
Hello there!
`, ) .add( 'placements', () => html`
Its top placement
Its right placement
Its bottom placement
Its left placement
`, ) .add( 'Override popper configuration', () => html`

Use the Storybook Knobs to dynamically change the popper configuration!

${text('Content text', 'Hello, World!')}
`, );