A basic modal element built on yo-yo.
var createModal = require('modal-element')
var yo = require('yo-yo')
var contents = yo`<div>
<h3>Header</h3>
<p>This is a modal</p>
</div>`
// Render the modal with contents
var modal = createModal(modalContents)
// Call to hide modal
modal.hide()
// Call to show the modal again
modal.show()
Creates a new modal element.
Will hide or show modal.
Shows the modal and/or overrides the contents.
Hides the modal.
(c) 2016 Kyle Robinson Young. MIT License