1.0.4 • Published 7 months ago

sinonaz-modal v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

Modal

This package allows you to work with modals on your websites.

Installation

npm install sinonaz-modal

Usage

CommonJS:

const Modal = require('sinonaz-modal');

const modals = new Modal();

modals.init();

ESModules:

import { Modal } from 'sinonaz-modal';

const modals = new Modal();

modals.init();

Example

<button type="button" data-open-target="js-modal">Click to open modal</button>

<div class="js-modal">
  <div>
    <button type="button" data-close-target="js-modal">
      Click to close modal
    </button>
  </div>
</div>
1.0.4

7 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago