Skip to content

Commit

Permalink
docs: move examples to component pages
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed May 31, 2024
1 parent 8eb9297 commit f291857
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/components/hot-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,20 @@
| Event |
|---------|
| `click` |

## Example

<!-- markdownlint-disable -->

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

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

<br>

<!-- markdownlint-enable -->
8 changes: 8 additions & 0 deletions docs/components/hot-toolbar.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@
| `hot-rightalign-click` |
| `hot-underline-click` |
| `hot-undo-click` |

## Example

<!-- markdownlint-disable -->

<hot-toolbar></hot-toolbar>

<!-- markdownlint-enable -->

0 comments on commit f291857

Please sign in to comment.