Ryan Di e95222ed32 fix: add constants and side methods to packages (#10418) před 4 dny
..
actions e95222ed32 fix: add constants and side methods to packages (#10418) před 4 dny
components e95222ed32 fix: add constants and side methods to packages (#10418) před 4 dny
context 21ffaf4d76 refactor: auto ordered imports (#9163) před 9 měsíci
css f2600fe3e8 fix: close floating sidebar on main menu open (#10295) před 1 měsícem
data e95222ed32 fix: add constants and side methods to packages (#10418) před 4 dny
eraser d87620b239 fix: Circular reference (#10544) před 1 týdnem
fonts e95222ed32 fix: add constants and side methods to packages (#10418) před 4 dny
hooks d080833f4d chore: bump [email protected] (#10431) před 1 měsícem
lasso d87620b239 fix: Circular reference (#10544) před 1 týdnem
locales 51ad8951d4 chore: Update translations from Crowdin (#10316) před 1 měsícem
renderer 7497a08270 fix: Frame and Frame Element binding highlight offset (#10423) před 1 měsícem
scene d87620b239 fix: Circular reference (#10544) před 1 týdnem
subset d080833f4d chore: bump [email protected] (#10431) před 1 měsícem
tests e95222ed32 fix: add constants and side methods to packages (#10418) před 4 dny
wysiwyg 47cbb5b6fb refactor: single source of truths with editor interface (#10178) před 1 měsícem
.gitignore 4f0a2a9593 docs: add next js with app router example (#7552) před 1 rokem
.size-limit.json d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) před 2 roky
CHANGELOG.md 82b9a6b464 docs: CHANGELOG typos 🙏 (#9250) před 9 měsíci
README.md 69bc5bdaab chore: post publish docs & examples changes (#9217) před 9 měsíci
analytics.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) před 9 měsíci
animated-trail.ts a18b139a60 fix: laser pointer trail disappearing on pointerup (#9413) (#9427) před 8 měsíci
animation-frame-handler.ts 86cfeb714c feat: add eraser tool trail (#7511) před 2 roky
appState.ts c141960ada feat: Non-elbow arrow snapping and behavior changes (#9670) před 1 měsícem
charts.test.ts 21ffaf4d76 refactor: auto ordered imports (#9163) před 9 měsíci
charts.ts e95222ed32 fix: add constants and side methods to packages (#10418) před 4 dny
clients.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) před 9 měsíci
clipboard.test.ts b9d27d308e fix: pasting not working in firefox (#9947) před 3 měsíci
clipboard.ts 7cc31ac64a fix: Context menu paste adding image twice #10542 (#10543) před 1 týdnem
css.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) před 2 roky
cursor.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) před 9 měsíci
deburr.ts 550a388b2b feat: command palette (#7804) před 1 rokem
editor-jotai.ts 195a743874 feat: switch between basic shapes (#9270) před 8 měsíci
env.cjs 69bc5bdaab chore: post publish docs & examples changes (#9217) před 9 měsíci
errors.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) před 9 měsíci
gesture.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) před 1 rokem
global.d.ts d080833f4d chore: bump [email protected] (#10431) před 1 měsícem
history.ts 2535d73054 feat: apply deltas API (#9869) před 4 měsíci
i18n.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) před 9 měsíci
index-node.ts 21ffaf4d76 refactor: auto ordered imports (#9163) před 9 měsíci
index.tsx e95222ed32 fix: add constants and side methods to packages (#10418) před 4 dny
laser-trails.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) před 9 měsíci
mermaid.test.ts 2427e622b0 feat: improve mermaid detection on paste (#8287) před 1 rokem
mermaid.ts 2427e622b0 feat: improve mermaid detection on paste (#8287) před 1 rokem
package.json d080833f4d chore: bump [email protected] (#10431) před 1 měsícem
polyfill.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) před 2 roky
pwacompat.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) před 2 roky
react-app-env.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) před 2 roky
reactUtils.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) před 9 měsíci
shortcut.ts 8013eb5e16 feat: More prominent keyboard shortcuts in hints (#10057) před 2 měsíci
snapping.ts d87620b239 fix: Circular reference (#10544) před 1 týdnem
tsconfig.json 0cd5a259ae fix: incorrect type imports (#9308) před 9 měsíci
types.ts 019ce4c52c fix: Corner jumping & hints (#10403) před 1 měsícem
vite-env.d.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) před 9 měsíci
workers.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) před 9 měsíci

README.md

Excalidraw

Excalidraw is exported as a component to be directly embedded in your project.

Installation

Use npm or yarn to install the package.

npm install react react-dom @excalidraw/excalidraw
# or
yarn add react react-dom @excalidraw/excalidraw

Note: If you don't want to wait for the next stable release and try out the unreleased changes, use @excalidraw/excalidraw@next.

Self-hosting fonts

By default, Excalidraw will try to download all the used fonts from the CDN.

For self-hosting purposes, you'll have to copy the content of the folder node_modules/@excalidraw/excalidraw/dist/prod/fonts to the path where your assets should be served from (i.e. public/ directory in your project). In that case, you should also set window.EXCALIDRAW_ASSET_PATH to the very same path, i.e. / in case it's in the root:

<script>window.EXCALIDRAW_ASSET_PATH = "/";</script>

Dimensions of Excalidraw

Excalidraw takes 100% of width and height of the containing block so make sure the container in which you render Excalidraw has non zero dimensions.

Demo

Go to CodeSandbox example.

Integration

Head over to the docs.

API

Head over to the docs.

Contributing

Head over to the docs.