apps/docs/content/docs/user-interface.mdx
The tldraw package includes a complete user interface with menus, toolbars, keyboard shortcuts, and style panels. You can hide it entirely, listen to events, or customize individual components.
Each of those is a prop on <Tldraw>: hideUi hides everything, components replaces or removes individual pieces, and onUiEvent reports every UI interaction:
import { Tldraw } from 'tldraw'
import 'tldraw/tldraw.css'
export default function App() {
return (
<div style={{ position: 'fixed', inset: 0 }}>
<Tldraw
hideUi={false}
components={{ PageMenu: null }}
onUiEvent={(name, data) => console.log(name, data)}
/>
</div>
)
}