GitHub

Excalidraw

llms.txt

Example

Create a graphin ExcalidrawUse as acomponentExportas SVG
This is a demo of the Excalidraw component.

Usage

  1. Draw a diagram in excalidraw with the default colors and export it as a svg without a background.

  2. Import that svg and use it with the excalidraw component, colors will be automatically changed to your theme colors.

		
<Excalidraw {svg} alt="Excalidraw Demo" caption="This is a demo of the Excalidraw component." />

API Reference

Excalidraw

Renders an Excalidraw SVG drawing with optional caption.

Property
svg
alt
caption
captionClass
class
ref