An open API service indexing awesome lists of open source software.

https://github.com/component/overlay

Page overlay component
https://github.com/component/overlay

Last synced: 8 months ago
JSON representation

Page overlay component

Awesome Lists containing this project

README

          

# 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