import { Story, Meta, html } from '@open-wc/demoing-storybook';
import demoStyle from './demo-dialog-style.js';
import './styled-dialog-content.js';
import '../lion-dialog.js';
# Dialog
`lion-dialog` is a component wrapping a modal dialog controller.
Its purpose is to make it easy to use our Overlay System declaratively.
Hello person who opened the dialog!
Look how nice this dialog looks!
/div> `; } } customElements.define('styled-dialog-content',StyledDialogContent); ``` ### Close overlay from component slotted as content The overlay cannot be closed by dispatching the `close-overlay` from a button in a styled component that is slotted in as content, because it will not cross the shadow boundary of the component. A method should be created that will dispatch the `close-overlay` event from the component.Hello person who opened the dialog!
Look how nice this dialog looks!
/div> `; } ``` ### Placement overrides