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-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; } .tooltip { display: block; position: absolute; font-size: 16px; color: white; background-color: black; border-radius: 4px; padding: 8px; } @media (max-width: 480px) { .tooltip { display: none; } } `; storiesOf('Local Overlay System|Tooltip', module) .addDecorator(withKnobs) .add( 'Button tooltip', () => html`
Tooltip
Hello there!
`, ) .add( 'placements', () => html`
Top
Its top placement
Right
Its right placement
Bottom
Its bottom placement
Left
Its left placement
`, ) .add( 'Override popper configuration', () => html`

Use the Storybook Knobs to dynamically change the popper configuration!

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