overlay-component

Overlay component

Overlay

Page overlay component.

$ npm install overlay-component

Returns a new Overlay.

Options:

  • closable: whether or not a user may click the overlay to close [false]
  • target: target element to overlay [body]

Show the overlay.

Hide the overlay.

  • show when the overlay is shown
  • hide when the overlay is hidden
  • close when the overlay is removed (follows hide normally)

MIT