1.1.0
Features
- Support lazy loading components in
openModal
import { openModal } from 'svelte-modals'
openModal(() => import('./AlertModal.svelte'))
- Add
loading
slot forModals
component that is shown when a modal is being lazy loaded
<script>
import { Modals } from 'svelte-modals'
import Spinner from './Spinner.svelte'
</script>
<Modals>
<div slot="loading">
<Spinner />
</div>
</Modals>