[Example Request]: How do I enable the 'Export' button?
shubhendumadhukar opened this issue · comments
What's the example?
I have a shared board where I don't see an option to export the entire board, like the one in all the examples on documentation and tldraw.com. I do have a 'Shape > Export as' option, but i need to select the shapes on my board to be exported, it seems to be different than just 'Export as' option which lets you export the complete board.
Following is the snapshot of the menu my board has:
Code of Conduct
- I agree to follow this project's Code of Conduct
Solved:
Create a custom main menu with ExportFileContentSubMenu
function CustomMainMenu() {
return (
<DefaultMainMenu>
<TldrawUiMenuGroup id="export-board">
<ExportFileContentSubMenu></ExportFileContentSubMenu>
</TldrawUiMenuGroup>
<DefaultMainMenuContent />
</DefaultMainMenu>
);
}