nanooverlay
a small and simple overlay (widget) HTML Custom Element, that works with DOM-diffing libarys like Choo and is build with Nanocomponent.
how to get
npm i nanooverlay
parameters
content : '<!-- content of the overlay -->' { <--
how to use
with choo
var choo = ; var html = ; var nanooverlay = ; var Overlay = ; var app = app; app app { let $overlay = ''; if stateopenOverlay $overlay = Overlay return html` `; }
standalone
const Overlay = ; const overlay = ; const overlayContent = document; overlayContentinnerHTML = 'overlay content'; // append to DOM const $element = overlay; documentbody;