---
title: Code x-ray for UI events
component: ./UiEventsExample.tsx
category: editor-api
priority: 0
---

Listen to events from tldraw's UI.

---

Try selecting tools, using keyboard shortcuts, undo/redo, etc. Events will be logged next to the canvas.
