A small JS utility that manipulates purecss-components modals
npm install purecss-components-modalPure CSS Components Modal
==================



!Dependencies
!Current Version
A small JS utility for working with Pure.CSS Components Modal.
NOTE: This is an independent project, and is not directly associated with Pure CSS.
Pure.CSS Components is a library of CSS only components designed
for use with the Pure.CSS framework. None of the components require any JavaScript in order to
function. There may be times, however, when it can be useful to have JavaScript to manipulate a component. Therefore,
I've created individual JS modules to complement the CSS only components. Don't need JS? Don't bother. Need a little
JS? Use just what you need.
``js`
yarn add purecss-components-modal`
orjs`
npm i purecss-components-modal -S
An example HTML Modal:
`html`
Header
Body
This JS would work with the Modal defined above:
`js
import Modal from 'purecss-components-modal';
// Pass in a selector to the base node for the modal you want to work with
const loginModal = Modal('#login-modal');
// Show the modal
loginModal.open();
// Hide the modal
loginModal.close();
// Toggle the modal
loginModal.toggle();
// Check if the modal is open
loginModal.isOpen();
// Check if the modal is closed
loginModal.isClosed();
``