Virtual whiteboard for sketching hand-drawn like diagrams
docs(README.md): fix typo excalidrawRef -> ref (#3170)
Aakansha Doshi0d2f72f87e0b
diff --git a/src/packages/excalidraw/README.md b/src/packages/excalidraw/README.mdindex f70d9eb527..df8c9e4990 100644--- a/src/packages/excalidraw/README.md+++ b/src/packages/excalidraw/README.md@@ -237,7 +237,7 @@ export default function IndexPage() {| [`offsetTop`](#offsetTop) | Number | `0` | top position relative to which Excalidraw should render || [`onChange`](#onChange) | Function | | This callback is triggered whenever the component updates due to any change. This callback will receive the excalidraw elements and the current app state. || [`initialData`](#initialData) | <pre>{elements?: <a href="https://github.com/excalidraw/excalidraw/blob/master/src/element/types.ts#L78">ExcalidrawElement[]</a>, appState?: <a href="https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L37">AppState<a> } </pre> | null | The initial data with which app loads. |-| [`excalidrawRef`](#excalidrawRef) | [`createRef`](https://reactjs.org/docs/refs-and-the-dom.html#creating-refs) or [`callbackRef`](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) or <pre>{ current: { readyPromise: <a href="https://github.com/excalidraw/excalidraw/blob/master/src/utils.ts#L317">resolvablePromise</a> } }</pre> | | Ref to be passed to Excalidraw |+| [`ref`](#ref) | [`createRef`](https://reactjs.org/docs/refs-and-the-dom.html#creating-refs) or [`callbackRef`](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) or <pre>{ current: { readyPromise: <a href="https://github.com/excalidraw/excalidraw/blob/master/src/utils.ts#L317">resolvablePromise</a> } }</pre> | | Ref to be passed to Excalidraw || [`onCollabButtonClick`](#onCollabButtonClick) | Function | | Callback to be triggered when the collab button is clicked || [`isCollaborating`](#isCollaborating) | `boolean` | | This implies if the app is in collaboration mode || [`onPointerUpdate`](#onPointerUpdate) | Function | | Callback triggered when mouse pointer is updated. |@@ -319,7 +319,7 @@ This helps to load Excalidraw with `initialData`. It must be an object or a [proYou might want to use this when you want to load excalidraw with some initial elements and app state.-#### `excalidrawRef`+#### `ref`You can pass a `ref` when you want to access some excalidraw APIs. We expose the below APIs: