<script>
import MorphingModal from 'svelte-morphing-modal';
let open = false;
</script>
<MorphingModal overlay={false} bind:open>
<div class="mini" slot="trigger">
Mini conent
</div>
<div class="full">
Full conent
<button on:click={e=>open=false}>×</button>
</div>
</MorphingModal>
<style>
.mini, .full { border: 2px solid gray; padding: 10px; background: white; }
</style>