0.2.1 • Published 2 months ago

invokers-polyfill v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Invoker Buttons Polyfill

This polyfills the HTML invoketarget/invokeaction attributes, as proposed by the Open UI group.

To see the explainer of these, please visit https://open-ui.org/components/invokers.explainer/.

How to use

If you're using npm, you only need to import the package, like so:

import "invokers-polyfill";

Alternatively, if you're not using a package manager, you can use the unpkg script:

<script
  type="module"
  async
  src="https://unpkg.com/invokers-polyfill@latest/invoker.min.js"
></script>

With the module imported, you can add invoketarget and invokeaction attributes to your HTML:

<button invoketarget="my-dialog">Open Dialog!</button>
<dialog id="my-dialog">I'm a dialog!</dialog>
0.2.1

2 months ago

0.2.0

2 months ago

0.1.4

3 months ago

0.1.5

3 months ago

0.1.3

3 months ago

0.1.2

3 months ago

0.1.1

3 months ago

0.1.0

5 months ago