<script> import { Button, Modal } from 'svelma2' let active = false </script> <Button class="block" on:click={() => active = !active}>Toggle</Button> <Modal bind:active={active}> <p class="image is-4by3"> <img alt="Test image" src="https://via.placeholder.com/1280x920"/> </p> </Modal>