āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/udecode/plate/(plugins)/(elements)/excalidraw ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
title: Excalidraw docs:
npm install @platejs/excalidraw
import { ExcalidrawPlugin } from '@platejs/excalidraw/react';
const plugins = [
// ...otherPlugins
ExcalidrawPlugin,
];
You can add this item to the Insert Toolbar Button to insert Excalidraw elements:
{
icon: <PenToolIcon />,
label: 'Excalidraw',
value: KEYS.excalidraw,
}
ExcalidrawPluginExcalidraw void element plugin.
insertExcalidrawInserts an Excalidraw element into the editor.
<API name="insertExcalidraw"> <APIParameters> <APIItem name="props" type="NodeProps<TExcalidrawElement>" optional> Props for the Excalidraw element. </APIItem> <APIItem name="options" type="InsertNodesOptions" optional> Options for inserting the Excalidraw element. </APIItem> </APIParameters> </API>useExcalidrawElementA behavior hook for the Excalidraw component.
<API name="useExcalidrawElement"> <APIState> <APIItem name="element" type="TExcalidrawElement"> The Excalidraw element. </APIItem> <APIItem name="libraryItems" type="LibraryItems" optional> Library items to display in the Excalidraw component. - **Default:** `[]` </APIItem> <APIItem name="scrollToContent" type="boolean" optional> Whether to scroll to content inside the Excalidraw component. - **Default:** `true` </APIItem> </APIState> <APIReturns type="object"> <APIItem name="Excalidraw" type="any"> The Excalidraw component. </APIItem> <APIItem name="excalidrawProps" type="ExcalidrawProps"> Props to pass to the Excalidraw component. </APIItem> </APIReturns> </API>ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā