@teipublisher/pb-components
Version:
Collection of webcomponents underlying TEI Publisher
27 lines (23 loc) • 969 B
HTML
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes" />
<title>pb-dialog Demo</title>
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script><script type="module" src="../pb-components-bundle.js"></script>
</head>
<body>
<pb-demo-snippet>
<template>
<pb-page>
<main>
<button onclick="document.getElementById('dialog1').openDialog()">Open Dialog</button>
<pb-dialog id="dialog1">
<h1 slot="title">Dialog 1</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</pb-dialog>
</main>
</pb-page>
</template>
</pb-demo-snippet>
</body>
</html>