Skip to content

Commit

Permalink
docs: update usage example button with click
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Mar 13, 2024
1 parent d63de8b commit 011c7fd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ changes.

<!-- markdownlint-disable -->

<hot-button>Click Me!</hot-button>
<hot-button id="hotButton">Click Me!</hot-button>
<script>
const button = document.getElementById('hotButton');

button.addEventListener('click', () => {
alert('Button Clicked!');
});
</script>

<!-- markdownlint-enable -->

0 comments on commit 011c7fd

Please sign in to comment.