Make modal example more obvious

pull/2685/head
James Robey 5 years ago
parent c4c21438b2
commit c954e84727

@ -1,9 +1,13 @@
<script>
import Modal from './Modal.svelte';
let showModal = true;
let showModal = false;
</script>
<button on:click="{() => showModal = true}">
show modal
</button>
{#if showModal}
<Modal on:close="{() => showModal = false}">
<h2 slot="header">
@ -22,8 +26,4 @@
<a href="https://www.merriam-webster.com/dictionary/modal">merriam-webster.com</a>
</Modal>
{:else}
<button on:click="{() => showModal = true}">
show modal
</button>
{/if}
{/if}

Loading…
Cancel
Save