> For the complete documentation index, see [llms.txt](https://i58215.gitbook.io/component-sdl2-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://i58215.gitbook.io/component-sdl2-en/api/possible-events-to-track.md).

# Possible component events to track

| Event         | Description                                             |
| ------------- | ------------------------------------------------------- |
| `click`       | Event occurs when a component is clicked                |
| `hover`       | An event occurs when you hover over a component         |
| `focus`       | The event occurs when focusing on the component         |
| `focusout`    | Event occurs when component loses focus                 |
| `mousemotion` | The event occurs when the mouse moves on the component  |
| `onmousedown` | An event occurs when a button is pressed on a component |
| `onmouseup`   | An event occurs when a button is released               |
| `onmouseover` | An event occurs when the mouse enters the component     |
| `onmouseout`  | An event occurs when the mouse leaves the component     |
