This webcomponent follows the open-wc recommendation.
npm i @digital-realty/ix-dialog
<script type="module">
import '@digital-realty/ix-dialog/ix-dialog.js';
</script>
<ix-dialog open>
<div slot="headline">
Dialog title
</div>
<form slot="content" id="form-id" method="dialog">
A simple dialog with free-form content.
</form>
<div slot="actions">
<button form="form-id">Ok</button>
</div>
</ix-dialog>
<script type="module">
import { IxDialog } from '@digital-realty/ix-dialog/IxDialog'
</script>
Full documentation and demo are available at DLR Component Gallery.