1.0.4 • Published 2 years ago

sinonaz-modal v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years 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

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago