Package Exports
- @excalidraw/excalidraw
- @excalidraw/excalidraw/actions/actionAddToLibrary
- @excalidraw/excalidraw/actions/actionAlign
- @excalidraw/excalidraw/actions/actionBoundText
- @excalidraw/excalidraw/actions/actionCanvas
- @excalidraw/excalidraw/actions/actionClipboard
- @excalidraw/excalidraw/actions/actionCropEditor
- @excalidraw/excalidraw/actions/actionDeleteSelected
- @excalidraw/excalidraw/actions/actionDistribute
- @excalidraw/excalidraw/actions/actionDuplicateSelection
- @excalidraw/excalidraw/actions/actionElementLink
- @excalidraw/excalidraw/actions/actionElementLock
- @excalidraw/excalidraw/actions/actionEmbeddable
- @excalidraw/excalidraw/actions/actionExport
- @excalidraw/excalidraw/actions/actionFinalize
- @excalidraw/excalidraw/actions/actionFlip
- @excalidraw/excalidraw/actions/actionFrame
- @excalidraw/excalidraw/actions/actionGroup
- @excalidraw/excalidraw/actions/actionHistory
- @excalidraw/excalidraw/actions/actionLinearEditor
- @excalidraw/excalidraw/actions/actionLink
- @excalidraw/excalidraw/actions/actionMenu
- @excalidraw/excalidraw/actions/actionNavigate
- @excalidraw/excalidraw/actions/actionProperties
- @excalidraw/excalidraw/actions/actionSelectAll
- @excalidraw/excalidraw/actions/actionStyles
- @excalidraw/excalidraw/actions/actionTextAutoResize
- @excalidraw/excalidraw/actions/actionToggleGridMode
- @excalidraw/excalidraw/actions/actionToggleObjectsSnapMode
- @excalidraw/excalidraw/actions/actionToggleSearchMenu
- @excalidraw/excalidraw/actions/actionToggleShapeSwitch
- @excalidraw/excalidraw/actions/actionToggleStats
- @excalidraw/excalidraw/actions/actionToggleViewMode
- @excalidraw/excalidraw/actions/actionToggleZenMode
- @excalidraw/excalidraw/actions/actionZindex
- @excalidraw/excalidraw/actions/index
- @excalidraw/excalidraw/actions/manager
- @excalidraw/excalidraw/actions/register
- @excalidraw/excalidraw/actions/shortcuts
- @excalidraw/excalidraw/actions/types
- @excalidraw/excalidraw/analytics
- @excalidraw/excalidraw/animated-trail
- @excalidraw/excalidraw/animation-frame-handler
- @excalidraw/excalidraw/appState
- @excalidraw/excalidraw/charts
- @excalidraw/excalidraw/clients
- @excalidraw/excalidraw/clipboard
- @excalidraw/excalidraw/common/binary-heap
- @excalidraw/excalidraw/common/colors
- @excalidraw/excalidraw/common/constants
- @excalidraw/excalidraw/common/emitter
- @excalidraw/excalidraw/common/font-metadata
- @excalidraw/excalidraw/common/index
- @excalidraw/excalidraw/common/keys
- @excalidraw/excalidraw/common/points
- @excalidraw/excalidraw/common/promise-pool
- @excalidraw/excalidraw/common/queue
- @excalidraw/excalidraw/common/random
- @excalidraw/excalidraw/common/url
- @excalidraw/excalidraw/common/utility-types
- @excalidraw/excalidraw/common/utils
- @excalidraw/excalidraw/components/Actions
- @excalidraw/excalidraw/components/ActiveConfirmDialog
- @excalidraw/excalidraw/components/App
- @excalidraw/excalidraw/components/Avatar
- @excalidraw/excalidraw/components/BraveMeasureTextError
- @excalidraw/excalidraw/components/Button
- @excalidraw/excalidraw/components/ButtonIcon
- @excalidraw/excalidraw/components/ButtonIconCycle
- @excalidraw/excalidraw/components/ButtonSeparator
- @excalidraw/excalidraw/components/Card
- @excalidraw/excalidraw/components/CheckboxItem
- @excalidraw/excalidraw/components/ColorPicker/ColorInput
- @excalidraw/excalidraw/components/ColorPicker/ColorPicker
- @excalidraw/excalidraw/components/ColorPicker/CustomColorList
- @excalidraw/excalidraw/components/ColorPicker/HotkeyLabel
- @excalidraw/excalidraw/components/ColorPicker/Picker
- @excalidraw/excalidraw/components/ColorPicker/PickerColorList
- @excalidraw/excalidraw/components/ColorPicker/PickerHeading
- @excalidraw/excalidraw/components/ColorPicker/ShadeList
- @excalidraw/excalidraw/components/ColorPicker/TopPicks
- @excalidraw/excalidraw/components/ColorPicker/colorPickerUtils
- @excalidraw/excalidraw/components/ColorPicker/keyboardNavHandlers
- @excalidraw/excalidraw/components/CommandPalette/CommandPalette
- @excalidraw/excalidraw/components/CommandPalette/defaultCommandPaletteItems
- @excalidraw/excalidraw/components/CommandPalette/types
- @excalidraw/excalidraw/components/ConfirmDialog
- @excalidraw/excalidraw/components/ContextMenu
- @excalidraw/excalidraw/components/ConvertElementTypePopup
- @excalidraw/excalidraw/components/DarkModeToggle
- @excalidraw/excalidraw/components/DefaultSidebar
- @excalidraw/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin
- @excalidraw/excalidraw/components/Dialog
- @excalidraw/excalidraw/components/DialogActionButton
- @excalidraw/excalidraw/components/ElementCanvasButtons
- @excalidraw/excalidraw/components/ElementLinkDialog
- @excalidraw/excalidraw/components/Ellipsify
- @excalidraw/excalidraw/components/ErrorDialog
- @excalidraw/excalidraw/components/ExcalidrawLogo
- @excalidraw/excalidraw/components/EyeDropper
- @excalidraw/excalidraw/components/FilledButton
- @excalidraw/excalidraw/components/FixedSideContainer
- @excalidraw/excalidraw/components/FollowMode/FollowMode
- @excalidraw/excalidraw/components/FontPicker/FontPicker
- @excalidraw/excalidraw/components/FontPicker/FontPickerList
- @excalidraw/excalidraw/components/FontPicker/FontPickerTrigger
- @excalidraw/excalidraw/components/FontPicker/keyboardNavHandlers
- @excalidraw/excalidraw/components/HandButton
- @excalidraw/excalidraw/components/HelpButton
- @excalidraw/excalidraw/components/HelpDialog
- @excalidraw/excalidraw/components/HintViewer
- @excalidraw/excalidraw/components/IconPicker
- @excalidraw/excalidraw/components/ImageExportDialog
- @excalidraw/excalidraw/components/InitializeApp
- @excalidraw/excalidraw/components/InlineIcon
- @excalidraw/excalidraw/components/Island
- @excalidraw/excalidraw/components/JSONExportDialog
- @excalidraw/excalidraw/components/LaserPointerButton
- @excalidraw/excalidraw/components/LayerUI
- @excalidraw/excalidraw/components/LibraryMenu
- @excalidraw/excalidraw/components/LibraryMenuBrowseButton
- @excalidraw/excalidraw/components/LibraryMenuControlButtons
- @excalidraw/excalidraw/components/LibraryMenuHeaderContent
- @excalidraw/excalidraw/components/LibraryMenuItems
- @excalidraw/excalidraw/components/LibraryMenuSection
- @excalidraw/excalidraw/components/LibraryUnit
- @excalidraw/excalidraw/components/LoadingMessage
- @excalidraw/excalidraw/components/LockButton
- @excalidraw/excalidraw/components/MagicButton
- @excalidraw/excalidraw/components/MobileMenu
- @excalidraw/excalidraw/components/Modal
- @excalidraw/excalidraw/components/OverwriteConfirm/OverwriteConfirm
- @excalidraw/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions
- @excalidraw/excalidraw/components/OverwriteConfirm/OverwriteConfirmState
- @excalidraw/excalidraw/components/Paragraph
- @excalidraw/excalidraw/components/PasteChartDialog
- @excalidraw/excalidraw/components/PenModeButton
- @excalidraw/excalidraw/components/Popover
- @excalidraw/excalidraw/components/ProjectName
- @excalidraw/excalidraw/components/PropertiesPopover
- @excalidraw/excalidraw/components/PublishLibrary
- @excalidraw/excalidraw/components/QuickSearch
- @excalidraw/excalidraw/components/RadioGroup
- @excalidraw/excalidraw/components/RadioSelection
- @excalidraw/excalidraw/components/Range
- @excalidraw/excalidraw/components/SVGLayer
- @excalidraw/excalidraw/components/ScrollableList
- @excalidraw/excalidraw/components/SearchMenu
- @excalidraw/excalidraw/components/Section
- @excalidraw/excalidraw/components/ShareableLinkDialog
- @excalidraw/excalidraw/components/Sidebar/Sidebar
- @excalidraw/excalidraw/components/Sidebar/SidebarHeader
- @excalidraw/excalidraw/components/Sidebar/SidebarTab
- @excalidraw/excalidraw/components/Sidebar/SidebarTabTrigger
- @excalidraw/excalidraw/components/Sidebar/SidebarTabTriggers
- @excalidraw/excalidraw/components/Sidebar/SidebarTabs
- @excalidraw/excalidraw/components/Sidebar/SidebarTrigger
- @excalidraw/excalidraw/components/Sidebar/common
- @excalidraw/excalidraw/components/Spinner
- @excalidraw/excalidraw/components/Stack
- @excalidraw/excalidraw/components/Stats/Angle
- @excalidraw/excalidraw/components/Stats/CanvasGrid
- @excalidraw/excalidraw/components/Stats/Collapsible
- @excalidraw/excalidraw/components/Stats/Dimension
- @excalidraw/excalidraw/components/Stats/DragInput
- @excalidraw/excalidraw/components/Stats/FontSize
- @excalidraw/excalidraw/components/Stats/MultiAngle
- @excalidraw/excalidraw/components/Stats/MultiDimension
- @excalidraw/excalidraw/components/Stats/MultiFontSize
- @excalidraw/excalidraw/components/Stats/MultiPosition
- @excalidraw/excalidraw/components/Stats/Position
- @excalidraw/excalidraw/components/Stats/index
- @excalidraw/excalidraw/components/Stats/utils
- @excalidraw/excalidraw/components/Switch
- @excalidraw/excalidraw/components/TTDDialog/MermaidToExcalidraw
- @excalidraw/excalidraw/components/TTDDialog/TTDDialog
- @excalidraw/excalidraw/components/TTDDialog/TTDDialogInput
- @excalidraw/excalidraw/components/TTDDialog/TTDDialogOutput
- @excalidraw/excalidraw/components/TTDDialog/TTDDialogPanel
- @excalidraw/excalidraw/components/TTDDialog/TTDDialogPanels
- @excalidraw/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut
- @excalidraw/excalidraw/components/TTDDialog/TTDDialogTab
- @excalidraw/excalidraw/components/TTDDialog/TTDDialogTabTrigger
- @excalidraw/excalidraw/components/TTDDialog/TTDDialogTabTriggers
- @excalidraw/excalidraw/components/TTDDialog/TTDDialogTabs
- @excalidraw/excalidraw/components/TTDDialog/TTDDialogTrigger
- @excalidraw/excalidraw/components/TTDDialog/common
- @excalidraw/excalidraw/components/TextField
- @excalidraw/excalidraw/components/Toast
- @excalidraw/excalidraw/components/ToolButton
- @excalidraw/excalidraw/components/Tooltip
- @excalidraw/excalidraw/components/Trans
- @excalidraw/excalidraw/components/UnlockPopup
- @excalidraw/excalidraw/components/UserList
- @excalidraw/excalidraw/components/canvases/InteractiveCanvas
- @excalidraw/excalidraw/components/canvases/NewElementCanvas
- @excalidraw/excalidraw/components/canvases/StaticCanvas
- @excalidraw/excalidraw/components/canvases/index
- @excalidraw/excalidraw/components/dropdownMenu/DropdownMenu
- @excalidraw/excalidraw/components/dropdownMenu/DropdownMenuContent
- @excalidraw/excalidraw/components/dropdownMenu/DropdownMenuGroup
- @excalidraw/excalidraw/components/dropdownMenu/DropdownMenuItem
- @excalidraw/excalidraw/components/dropdownMenu/DropdownMenuItemContent
- @excalidraw/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio
- @excalidraw/excalidraw/components/dropdownMenu/DropdownMenuItemCustom
- @excalidraw/excalidraw/components/dropdownMenu/DropdownMenuItemLink
- @excalidraw/excalidraw/components/dropdownMenu/DropdownMenuSeparator
- @excalidraw/excalidraw/components/dropdownMenu/DropdownMenuTrigger
- @excalidraw/excalidraw/components/dropdownMenu/common
- @excalidraw/excalidraw/components/dropdownMenu/dropdownMenuUtils
- @excalidraw/excalidraw/components/footer/Footer
- @excalidraw/excalidraw/components/footer/FooterCenter
- @excalidraw/excalidraw/components/hoc/withInternalFallback
- @excalidraw/excalidraw/components/hyperlink/Hyperlink
- @excalidraw/excalidraw/components/hyperlink/helpers
- @excalidraw/excalidraw/components/icons
- @excalidraw/excalidraw/components/live-collaboration/LiveCollaborationTrigger
- @excalidraw/excalidraw/components/main-menu/DefaultItems
- @excalidraw/excalidraw/components/main-menu/MainMenu
- @excalidraw/excalidraw/components/shapes
- @excalidraw/excalidraw/components/welcome-screen/WelcomeScreen
- @excalidraw/excalidraw/components/welcome-screen/WelcomeScreen.Center
- @excalidraw/excalidraw/components/welcome-screen/WelcomeScreen.Hints
- @excalidraw/excalidraw/context/tunnels
- @excalidraw/excalidraw/context/ui-appState
- @excalidraw/excalidraw/cursor
- @excalidraw/excalidraw/data/EditorLocalStorage
- @excalidraw/excalidraw/data/ai/types
- @excalidraw/excalidraw/data/blob
- @excalidraw/excalidraw/data/encode
- @excalidraw/excalidraw/data/encryption
- @excalidraw/excalidraw/data/filesystem
- @excalidraw/excalidraw/data/image
- @excalidraw/excalidraw/data/index
- @excalidraw/excalidraw/data/json
- @excalidraw/excalidraw/data/library
- @excalidraw/excalidraw/data/reconcile
- @excalidraw/excalidraw/data/resave
- @excalidraw/excalidraw/data/restore
- @excalidraw/excalidraw/data/transform
- @excalidraw/excalidraw/data/types
- @excalidraw/excalidraw/deburr
- @excalidraw/excalidraw/editor-jotai
- @excalidraw/excalidraw/element/Scene
- @excalidraw/excalidraw/element/align
- @excalidraw/excalidraw/element/binding
- @excalidraw/excalidraw/element/bounds
- @excalidraw/excalidraw/element/collision
- @excalidraw/excalidraw/element/comparisons
- @excalidraw/excalidraw/element/containerCache
- @excalidraw/excalidraw/element/cropElement
- @excalidraw/excalidraw/element/delta
- @excalidraw/excalidraw/element/distance
- @excalidraw/excalidraw/element/distribute
- @excalidraw/excalidraw/element/dragElements
- @excalidraw/excalidraw/element/duplicate
- @excalidraw/excalidraw/element/elbowArrow
- @excalidraw/excalidraw/element/elementLink
- @excalidraw/excalidraw/element/embeddable
- @excalidraw/excalidraw/element/flowchart
- @excalidraw/excalidraw/element/fractionalIndex
- @excalidraw/excalidraw/element/frame
- @excalidraw/excalidraw/element/groups
- @excalidraw/excalidraw/element/heading
- @excalidraw/excalidraw/element/image
- @excalidraw/excalidraw/element/index
- @excalidraw/excalidraw/element/linearElementEditor
- @excalidraw/excalidraw/element/mutateElement
- @excalidraw/excalidraw/element/newElement
- @excalidraw/excalidraw/element/positionElementsOnGrid
- @excalidraw/excalidraw/element/renderElement
- @excalidraw/excalidraw/element/resizeElements
- @excalidraw/excalidraw/element/resizeTest
- @excalidraw/excalidraw/element/selection
- @excalidraw/excalidraw/element/shape
- @excalidraw/excalidraw/element/showSelectedShapeActions
- @excalidraw/excalidraw/element/sizeHelpers
- @excalidraw/excalidraw/element/sortElements
- @excalidraw/excalidraw/element/store
- @excalidraw/excalidraw/element/textElement
- @excalidraw/excalidraw/element/textMeasurements
- @excalidraw/excalidraw/element/textWrapping
- @excalidraw/excalidraw/element/transformHandles
- @excalidraw/excalidraw/element/typeChecks
- @excalidraw/excalidraw/element/types
- @excalidraw/excalidraw/element/utils
- @excalidraw/excalidraw/element/zindex
- @excalidraw/excalidraw/eraser/index
- @excalidraw/excalidraw/errors
- @excalidraw/excalidraw/fonts/Cascadia/index
- @excalidraw/excalidraw/fonts/ComicShanns/index
- @excalidraw/excalidraw/fonts/Emoji/index
- @excalidraw/excalidraw/fonts/ExcalidrawFontFace
- @excalidraw/excalidraw/fonts/Excalifont/index
- @excalidraw/excalidraw/fonts/Fonts
- @excalidraw/excalidraw/fonts/Helvetica/index
- @excalidraw/excalidraw/fonts/Liberation/index
- @excalidraw/excalidraw/fonts/Lilita/index
- @excalidraw/excalidraw/fonts/Nunito/index
- @excalidraw/excalidraw/fonts/Virgil/index
- @excalidraw/excalidraw/fonts/Xiaolai/index
- @excalidraw/excalidraw/fonts/index
- @excalidraw/excalidraw/gesture
- @excalidraw/excalidraw/history
- @excalidraw/excalidraw/hooks/useCallbackRefState
- @excalidraw/excalidraw/hooks/useCopiedIndicator
- @excalidraw/excalidraw/hooks/useCreatePortalContainer
- @excalidraw/excalidraw/hooks/useEmitter
- @excalidraw/excalidraw/hooks/useLibraryItemSvg
- @excalidraw/excalidraw/hooks/useOutsideClick
- @excalidraw/excalidraw/hooks/useScrollPosition
- @excalidraw/excalidraw/hooks/useStable
- @excalidraw/excalidraw/hooks/useStableCallback
- @excalidraw/excalidraw/hooks/useTextEditorFocus
- @excalidraw/excalidraw/hooks/useTransition
- @excalidraw/excalidraw/i18n
- @excalidraw/excalidraw/index
- @excalidraw/excalidraw/index-node
- @excalidraw/excalidraw/index.css
- @excalidraw/excalidraw/laser-trails
- @excalidraw/excalidraw/lasso/index
- @excalidraw/excalidraw/lasso/utils
- @excalidraw/excalidraw/math/angle
- @excalidraw/excalidraw/math/constants
- @excalidraw/excalidraw/math/curve
- @excalidraw/excalidraw/math/ellipse
- @excalidraw/excalidraw/math/index
- @excalidraw/excalidraw/math/line
- @excalidraw/excalidraw/math/point
- @excalidraw/excalidraw/math/polygon
- @excalidraw/excalidraw/math/range
- @excalidraw/excalidraw/math/rectangle
- @excalidraw/excalidraw/math/segment
- @excalidraw/excalidraw/math/triangle
- @excalidraw/excalidraw/math/types
- @excalidraw/excalidraw/math/utils
- @excalidraw/excalidraw/math/vector
- @excalidraw/excalidraw/mermaid
- @excalidraw/excalidraw/polyfill
- @excalidraw/excalidraw/reactUtils
- @excalidraw/excalidraw/renderer/helpers
- @excalidraw/excalidraw/renderer/interactiveScene
- @excalidraw/excalidraw/renderer/renderNewElementScene
- @excalidraw/excalidraw/renderer/renderSnaps
- @excalidraw/excalidraw/renderer/roundRect
- @excalidraw/excalidraw/renderer/staticScene
- @excalidraw/excalidraw/renderer/staticSvgScene
- @excalidraw/excalidraw/scene/Renderer
- @excalidraw/excalidraw/scene/export
- @excalidraw/excalidraw/scene/index
- @excalidraw/excalidraw/scene/normalize
- @excalidraw/excalidraw/scene/scroll
- @excalidraw/excalidraw/scene/scrollbars
- @excalidraw/excalidraw/scene/types
- @excalidraw/excalidraw/scene/zoom
- @excalidraw/excalidraw/snapping
- @excalidraw/excalidraw/subset/harfbuzz/harfbuzz-bindings
- @excalidraw/excalidraw/subset/harfbuzz/harfbuzz-loader
- @excalidraw/excalidraw/subset/harfbuzz/harfbuzz-wasm
- @excalidraw/excalidraw/subset/subset-main
- @excalidraw/excalidraw/subset/subset-shared.chunk
- @excalidraw/excalidraw/subset/subset-worker.chunk
- @excalidraw/excalidraw/subset/woff2/woff2-bindings
- @excalidraw/excalidraw/subset/woff2/woff2-loader
- @excalidraw/excalidraw/subset/woff2/woff2-wasm
- @excalidraw/excalidraw/types
- @excalidraw/excalidraw/utils/bbox
- @excalidraw/excalidraw/utils/export
- @excalidraw/excalidraw/utils/index
- @excalidraw/excalidraw/utils/shape
- @excalidraw/excalidraw/utils/withinBounds
- @excalidraw/excalidraw/workers
- @excalidraw/excalidraw/wysiwyg/textWysiwyg
Readme
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/excalidrawNote: 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.