You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
269 B
12 lines
269 B
4 years ago
|
<button on:click={ () => visible = true }>Click Me!</button>
|
||
|
|
||
|
{#if visible}
|
||
|
<modal on:click={ () => visible = false }>
|
||
|
<modal-content>
|
||
|
<h1>This Is A Modal</h1>
|
||
|
<p>Designers love modals. Click anywhere to close this.</p>
|
||
|
</modal-content>
|
||
|
</modal>
|
||
|
{/if}
|
||
|
|