svelte-modal Svelte Themes

Svelte Modal

A library for modals in svelte

Svelte Modal

npm install @tuentyfaiv/svelte-modal

Examples

import { faivmodal } from "@tuentyfaiv/svelte-modal";

const modal = faivmodal({
  query: "(max-width: 768px)", // "(768px <= width <= 1024px)"
});
const { open, device, toggleModal } = $modal;

Top categories

Loading Svelte Themes