Sv Popup

A simple popup/modal for svelte/sveltekit apps

svelte logo

Want a Svelte site built?

Hire a Svelte developer

sv-popup

A simple popup/modal for svelte/sveltekit apps.

Features

Installation

npm i -D sv-popup

Usage

<script>
  import { Modal, Content, Trigger } from "sv-popup"
</script>

<Modal>
  <Content>
    <h1>Hello</h1>
  </Content>
  <Trigger>
    <button>Open Modal</button>
  </Trigger>
</Modal>

<Modal>
  <Content>
    <h1>Hello 2</h1>
  </Content>
  <Trigger>
    <button>Open Modal 2</button>
  </Trigger>
</Modal>

Demo

Get New Themes & Resources

Loading Svelte Themes