1.0.3 • Published 3 years ago

@pirxpilot/overlay v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

Overlay

Page overlay component.

Installation

$ component install component/overlay

API

overlay(options|element)

Returns a new Overlay.

Options:

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

Overlay#show()

Show the overlay.

Overlay#hide()

Hide the overlay.

Events

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

License

MIT

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

8 years ago

1.0.0

8 years ago