add tools to UIOptions

This commit is contained in:
みけCAT 2024-01-10 22:32:25 +09:00 committed by GitHub
parent 65047cc2cb
commit 45fd464a47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ This prop can be used to customise UI of Excalidraw. Currently we support custom
{ {
<br /> canvasActions?: <a href="https://github.com/excalidraw/excalidraw/blob/master/packages/excalidraw/types.ts#L372"> <br /> canvasActions?: <a href="https://github.com/excalidraw/excalidraw/blob/master/packages/excalidraw/types.ts#L372">
CanvasActions CanvasActions
</a>, <br /> dockedSidebarBreakpoint?: number, <br /> welcomeScreen?: boolean <br /> </a>, <br /> dockedSidebarBreakpoint?: number, <br /> welcomeScreen?: boolean, <br /> tools?: { <br /> image: boolean <br /> } <br />
} }
</pre> </pre>
@ -78,4 +78,4 @@ Currently you can control the visibility of `image` tool via this prop.
| Prop | Type | Default | Description | | Prop | Type | Default | Description |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| image | boolean | true | Decides whether `image` tool should be visible. | image | boolean | true | Decides whether `image` tool should be visible.