airhorn-overlay

1.0.0 • Public • Published

Airhorn Web Component. Quick, load the demo! 📢

Distributed as an ES6 module. Requires Custom Elements and Shadow DOM.

Usage

<airhorn-overlay>
This content is fine, but if you click on me, I'll become very loud.
</airhorn-overlay>

Set the disabled attribute to disable the airhorn. Additionally, set overflow: hidden on the CSS of element to 'contain' the airhorn to its bounds, rather than expanding out onto the page.

Install

Install airhorn-overlay on NPM and include the ES6 module:

import {AirhornOverlayElement} from './node_modules/airhorn-overlay/airhorn-overlay.js';
// or maybe your transpiler supports...
import `airhorn-overlay`;

Readme

Keywords

none

Package Sidebar

Install

npm i airhorn-overlay

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Unpacked Size

54.3 kB

Total Files

6

Last publish

Collaborators

  • samthor