Documentation Index
Fetch the complete documentation index at: https://mintlify.com/excalidraw/excalidraw/llms.txt
Use this file to discover all available pages before exploring further.
UIOptions
TheUIOptions prop allows you to customize which UI features and canvas actions are available in the Excalidraw editor.
Type Definition
Properties
The viewport width (in pixels) below which the sidebar switches from docked to floating mode.Allows you to control responsive behavior of the sidebar.
Configuration object controlling which canvas actions are available.See Canvas Actions below for details.
Configuration for tool availability.
Optional function to control the editor form factor and desktop UI mode from the host app.If not provided, Excalidraw determines this automatically based on viewport size.
Canvas Actions
ThecanvasActions object controls which actions are available in the canvas menu and UI.
Action Properties
When
false, hides the canvas background color picker.When
false, hides the “Clear canvas” action.Controls export functionality.
false: Disables all export featuresExportOpts: Configures export behavior (see Export Options)
When
false, hides the “Load scene” action (open file functionality).When
false, hides the “Save to active file” action.Controls the theme toggle button.
true: Shows the theme togglefalse: Hides the theme togglenull: Default behavior (shows based on context)
When
false, hides the “Save as image” action.Export Options
WhencanvasActions.export is an object, you can configure export behavior:
When
false, disables the ability to save exports directly to disk.Custom handler for backend export. Called when user exports the canvas.
Custom UI renderer for the export dialog.
Default Values
Excalidraw uses these default values whenUIOptions is not provided: