Compare settings
Toolbar layout
Canvas control placement
On narrow viewers, both Canvas options use a full-width bottom bar.
Button labels
Overview map
In the enabled example, open Overview and zoom in to see the frame track the visible area.
Use it in your app
This site previews the main branch. The install command fetches the latest stable release, which may not support the settings shown above. See the release notes for available features.
Pass trusted or sanitized SVG to the viewer. Your app handles rendering and SVG sanitization.
npm install @narumitw/diagram-viewer
import { DiagramViewer } from "@narumitw/diagram-viewer"
import "@narumitw/diagram-viewer/styles.css"
<DiagramViewer source={source} svg={svg} />