sv-popup

0.5.3 • Public • Published

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 basic>
  <Content>
    <h1>Hello 2</h1>
  </Content>
  <Trigger>
    <button>Open Modal 2</button>
  </Trigger>
</Modal>

Demo

Readme

Keywords

none

Package Sidebar

Install

npm i sv-popup

Weekly Downloads

201

Version

0.5.3

License

none

Unpacked Size

33.2 kB

Total Files

45

Last publish

Collaborators

  • webjeda