Skip to content

A simple popup/modal for svelte/sveltekit apps

Notifications You must be signed in to change notification settings

Dalmangyi/sv-popup

 
 

Repository files navigation

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

About

A simple popup/modal for svelte/sveltekit apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 52.1%
  • CSS 31.1%
  • JavaScript 10.7%
  • HTML 6.1%