dwelle f944f1f7aa feat(editor): support frame backgrounds 4 dní pred
..
actions f944f1f7aa feat(editor): support frame backgrounds 4 dní pred
components f944f1f7aa feat(editor): support frame backgrounds 4 dní pred
context 21ffaf4d76 refactor: auto ordered imports (#9163) 11 mesiacov pred
css 063533aede feat(packages/excalidraw): support nested dropdown menu (#10749) 2 týždňov pred
data a70417f23f feat(editor): visualize binding midpoints + support for simple arrows (#10611) 2 týždňov pred
eraser d87620b239 fix: Circular reference (#10544) 2 mesiacov pred
fonts e95222ed32 fix: add constants and side methods to packages (#10418) 2 mesiacov pred
hooks 63e1148280 feat: stop using CSS filters for dark mode (static canvas) (#10578) 1 mesiac pred
lasso d87620b239 fix: Circular reference (#10544) 2 mesiacov pred
locales 3a5ef4020d feat(app): add preferences to main menu (#10760) 2 týždňov pred
renderer f944f1f7aa feat(editor): support frame backgrounds 4 dní pred
scene f944f1f7aa feat(editor): support frame backgrounds 4 dní pred
subset d080833f4d chore: bump [email protected] (#10431) 2 mesiacov pred
tests f944f1f7aa feat(editor): support frame backgrounds 4 dní pred
wysiwyg 063533aede feat(packages/excalidraw): support nested dropdown menu (#10749) 2 týždňov pred
.gitignore 4f0a2a9593 docs: add next js with app router example (#7552) 2 rokov pred
.size-limit.json d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 2 rokov pred
CHANGELOG.md 82b9a6b464 docs: CHANGELOG typos 🙏 (#9250) 11 mesiacov pred
README.md 69bc5bdaab chore: post publish docs & examples changes (#9217) 11 mesiacov pred
analytics.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) 11 mesiacov pred
animated-trail.ts a18b139a60 fix: laser pointer trail disappearing on pointerup (#9413) (#9427) 10 mesiacov pred
animation-frame-handler.ts 86cfeb714c feat: add eraser tool trail (#7511) 2 rokov pred
appState.ts c141960ada feat: Non-elbow arrow snapping and behavior changes (#9670) 3 mesiacov pred
charts.test.ts 21ffaf4d76 refactor: auto ordered imports (#9163) 11 mesiacov pred
charts.ts e95222ed32 fix: add constants and side methods to packages (#10418) 2 mesiacov pred
clients.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) 11 mesiacov pred
clipboard.test.ts b9d27d308e fix: pasting not working in firefox (#9947) 5 mesiacov pred
clipboard.ts 54a9826817 fix(editor): copying to clipboard with no ClipboardEvent (#10729) 3 týždňov pred
css.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 2 rokov pred
cursor.ts b9a255407f refactor: update SCSS syntax & remove open-color dep (#10633) 1 mesiac pred
deburr.ts 550a388b2b feat: command palette (#7804) 1 rok pred
editor-jotai.ts 195a743874 feat: switch between basic shapes (#9270) 10 mesiacov pred
env.cjs 69bc5bdaab chore: post publish docs & examples changes (#9217) 11 mesiacov pred
errors.ts a0b98a944f feat: TextToDiagram v2 (#10530) 1 mesiac pred
gesture.ts 1ed53b153c build: enable consistent type imports eslint rule (#7992) 1 rok pred
global.d.ts d080833f4d chore: bump [email protected] (#10431) 2 mesiacov pred
history.ts 2535d73054 feat: apply deltas API (#9869) 6 mesiacov pred
i18n.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) 11 mesiacov pred
index-node.ts 21ffaf4d76 refactor: auto ordered imports (#9163) 11 mesiacov pred
index.tsx f7b537a8b1 feat(packages/excalidraw): export CommandPalette (#10724) 3 týždňov pred
laser-trails.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) 11 mesiacov pred
mermaid.test.ts 2427e622b0 feat: improve mermaid detection on paste (#8287) 1 rok pred
mermaid.ts 2427e622b0 feat: improve mermaid detection on paste (#8287) 1 rok pred
package.json 063533aede feat(packages/excalidraw): support nested dropdown menu (#10749) 2 týždňov pred
polyfill.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 2 rokov pred
pwacompat.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 2 rokov pred
react-app-env.d.ts d6cd8b78f1 build: decouple package deps and introduce yarn workspaces (#7415) 2 rokov pred
reactUtils.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) 11 mesiacov pred
shortcut.ts 8013eb5e16 feat: More prominent keyboard shortcuts in hints (#10057) 4 mesiacov pred
snapping.ts d87620b239 fix: Circular reference (#10544) 2 mesiacov pred
tsconfig.json 0cd5a259ae fix: incorrect type imports (#9308) 11 mesiacov pred
types.ts a70417f23f feat(editor): visualize binding midpoints + support for simple arrows (#10611) 2 týždňov pred
vite-env.d.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) 11 mesiacov pred
workers.ts 432a46ef9e refactor: separate elements logic into a standalone package (#9285) 11 mesiacov pred

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.