Skip to content

james-em/svelte-modal-renderer

Repository files navigation

svelte-modal-renderer

Just a barebone demo to render something from anywhere

Usage

App.svelte

<ModalsRenderer>
   ...Your app
</ModalsRenderer>

Modal1.svelte

<script lang="ts">
  const { requestClose } = $$restProps;
</script>

<button on:click={requestClose}>Close</button>

Somewhere.svelte

const { openModal } = useModal();

const { closeModal } = openModal(Modal1, { ...props }, { ...config });

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published