# eit-info-overlay

> Webcomponent eit-info-overlay following open-wc recommendations

Latest version **0.0.2** (published 2022-05-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install eit-info-overlay
pnpm add eit-info-overlay
yarn add eit-info-overlay
bun add eit-info-overlay
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-05-24 |
| First published | 2022-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 13.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Miguel at EscuelaIT |
| Maintainers | midesweb |

## Links

- npm: https://www.npmjs.com/package/eit-info-overlay
- npm.io page: https://npm.io/package/eit-info-overlay

## Dependencies (4)

- [lit](https://npm.io/package/lit.md) ^2.0.2
- [@dile/dile-overlay-mixin](https://npm.io/package/@dile/dile-overlay-mixin.md) ^2.0.0
- [@dile/dile-close-document-click-mixin](https://npm.io/package/@dile/dile-close-document-click-mixin.md) ^1.0.0
- [@dile/dile-close-on-esc-pressed-mixin](https://npm.io/package/@dile/dile-close-on-esc-pressed-mixin.md) ^1.1.0

## Recent versions

- 0.0.2 (latest) — 2022-05-24
- 0.0.1 — 2022-05-18
- 0.0.0 — 2022-05-18

## README

# \<eit-info-overlay>

This webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) recommendation.

## Installation

```bash
npm i eit-info-overlay
```

## Usage

Import the component

```javascript
import 'eit-info-overlay/eit-info-overlay.js';
```

Use the component

```html
<eit-info-overlay>
  Any info message. (this is the overlay content)
</eit-info-overlay>
```

## Properties

- **opened**: Set the open or close state of the overlay.
- **horizontalAlign**: String property to set the horizontal position of the menu. Valid values are "left", "right" or "center". Default to "left".
- **verticalAlign**: String property to set the vertical position of the menu. Valid values are "bottom", "center" or "top". Default to "bottom".
- **moveTop**: Number of pixels to modify the default vertical position of the overlay. Accepts positive (move down) an negative (move up) values. Default 0.
- **moveLeft**: Number of pixels to modify the default horizontal position of the overlay. Accepts positive (move right) an negative (move left) values. Default 0.

## Methods

- **open()**: Use it to open the menu overlay box
- **close()**: Use it to close the menu overlay box
- **toggle()**: Toggles the menu-overlay box

## Custom events

- **overlay-opened**: dispatched when the overlay opens.
- **overlay-closed**: dispatched when the overlay closes.

### CSS Custom Properties

You can customize it using CSS Custom Properties.

Custom property | Description | Default
----------------|-------------|---------
--eit-info-overlay-color | Overlay text color | #303030
--eit-info-overlay-background-color | Overlay background color | #f5f5f5

---
_Source: https://npm.io/package/eit-info-overlay · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
