Skip to content

1.1.0

Compare
Choose a tag to compare
@mattjennings mattjennings released this 30 Jan 00:56
· 68 commits to main since this release

Features

  • Support lazy loading components in openModal
import { openModal } from 'svelte-modals'

openModal(() => import('./AlertModal.svelte'))
  • Add loading slot for Modals 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>