Skip to content

Commit

Permalink
Merge pull request #42 from pepelsbey/patch-1
Browse files Browse the repository at this point in the history
Use commandfor/command attributes in the readme
  • Loading branch information
keithamus authored Jul 27, 2024
2 parents 3d0ef0e + ac26d5b commit ecb51a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Invoker Buttons Polyfill

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

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

Expand All @@ -22,9 +22,9 @@ Alternatively, if you're not using a package manager, you can use the `unpkg` sc
></script>
```

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

```html
<button invoketarget="my-dialog">Open Dialog!</button>
<button commandfor="my-dialog" command="show-modal">Open Dialog!</button>
<dialog id="my-dialog">I'm a dialog!</dialog>
```

0 comments on commit ecb51a9

Please sign in to comment.