Vertical toolbar
Tldraw supports a vertical toolbar out of the box. Override the toolbar component to set the orientation of the default toolbar to vertical.
import { DefaultToolbar, TLComponents, Tldraw } from 'tldraw'
import 'tldraw/tldraw.css'
const components: TLComponents = {
Toolbar: () => <DefaultToolbar orientation="vertical" />,
}
export default function BasicExample() {
return (
<div className="tldraw__editor">
<Tldraw components={components} />
</div>
)
}
Is this page helpful?
Prev
Toolbar groupsNext
Add a tool to the toolbar