diff options
Diffstat (limited to 'examples/with-nextjs/src/excalidrawWrapper.tsx')
| -rw-r--r-- | examples/with-nextjs/src/excalidrawWrapper.tsx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/with-nextjs/src/excalidrawWrapper.tsx b/examples/with-nextjs/src/excalidrawWrapper.tsx new file mode 100644 index 0000000..b4c45fa --- /dev/null +++ b/examples/with-nextjs/src/excalidrawWrapper.tsx @@ -0,0 +1,22 @@ +"use client"; +import * as excalidrawLib from "@excalidraw/excalidraw"; +import { Excalidraw } from "@excalidraw/excalidraw"; +import App from "../../with-script-in-browser/components/ExampleApp"; + +import "@excalidraw/excalidraw/index.css"; + +const ExcalidrawWrapper: React.FC = () => { + return ( + <> + <App + appTitle={"Excalidraw with Nextjs Example"} + useCustom={(api: any, args?: any[]) => {}} + excalidrawLib={excalidrawLib} + > + <Excalidraw /> + </App> + </> + ); +}; + +export default ExcalidrawWrapper; |
