0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
svelte/documentation/examples/15-composition/05-modal/App.svelte

32 lines
859 B
Svelte
Raw Normal View History

<script>
import Modal from './Modal.svelte';
2019-05-05 11:52:00 +02:00
let showModal = false;
</script>
2023-05-14 07:50:43 +02:00
<button on:click={() => (showModal = true)}> show modal </button>
2019-05-05 11:52:00 +02:00
<Modal bind:showModal>
<h2 slot="header">
modal
<small><em>adjective</em> mod·al \ˈmō-dəl\</small>
</h2>
<ol class="definition-list">
<li>of or relating to modality in logic</li>
<li>
2023-05-14 07:50:43 +02:00
containing provisions as to the mode of procedure or the manner of taking effect —used of a
contract or legacy
</li>
<li>of or relating to a musical mode</li>
<li>of or relating to structure as opposed to substance</li>
2023-05-14 07:50:43 +02:00
<li>
of, relating to, or constituting a grammatical form or category characteristically indicating
predication
</li>
<li>of or relating to a statistical mode</li>
</ol>
<a href="https://www.merriam-webster.com/dictionary/modal">merriam-webster.com</a>
</Modal>