Usage

The simplest way to add an interactive mind map to your application.

The MindMap component initializes the mind map canvas, handles theming, and provides context for child components.

Handling Changes

Use the onChange callback to respond to user interactions with the mind map. This callback receives the updated data whenever a node is added, edited, moved, or deleted.

Operations: 0

Try adding, editing, or deleting nodes

Readonly Mode

Create a view-only mind map by disabling editing features. This is perfect for displaying organizational charts, knowledge bases, or any static content that shouldn't be modified by users.

📖 View-only mode - no editing allowed

Custom Layout Direction

Control how the mind map branches expand by setting the direction prop. Choose between left (0), right (1), or both sides (2) to match your content structure and visual preferences.

Layout Direction:

Tracking Node Selection

Use the onSelectNodes callback to respond to node selection events. This is useful for implementing custom actions, analytics, or synchronized views based on what users are focusing on.

Selected Nodes: 0

💡 Ctrl/Cmd + Click to select multiple nodes

Localization

The MindMap component supports multiple languages for its built-in menus and prompts. Set the locale prop to match your application's language or user preferences.

Interface Language:

🌍 Right-click to see localized menus

Theme Control

By default, the mind map automatically adapts to your document's theme. You can override this behavior by explicitly setting the theme prop to force a specific appearance.

Force Theme: