Git Product home page Git Product logo

react-flow-mindmap-app's Introduction

React Flow Mind Map App

mindmap

This mind map app was created as an example for the blog post "Tutorial: Build a Mind Map App with React Flow", which has a step-by-step guide on how to build a this mindmap (for intermediate or advanced React users). React Flow is a library for creating node-based UIs.

Features of the mindmap include

  • Quickly create new nodes on drag + mouse-release
  • Organize nodes by moving child notes with their parent
  • Edit text in nodes

The tutorial covers React Flow topics including

  • Using Zustand for state management
  • Custom node with an input field
  • Using node area as a handle
  • Dynamic width and auto focus

Demo: https://react-flow-mindmap.netlify.app

Development

We are using Vite for the development.

Installation

Before you start, you need to install the dependencies:

npm install

Dev Server

npm run dev

Build

npm run build

react-flow-mindmap-app's People

Contributors

johnrobbjr avatar moklick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-flow-mindmap-app's Issues

auto layout?

this is really cool, thanks for the demo!

is there a way to apply any kind of auto-layout to one of these?
nothing too complex, a simple tree structure /org-chart view would be fine for a mind-map

Moving child nodes with keyboard does not work due to nodes being moved by absolute position instead of relative position

๐Ÿ‘‹ I've just been playing with this example and I noticed that the default keyboard accessible controls built into ReactFlow aren't working as expected here due to the parent - child node relationship. If you try and move child nodes with the keyboard, the just move up and to the left. It looks like this is as if they are being moved like position = positionAbsolute + movementSpeed but due to them being child nodes, position is relative, not absolute.

Is this an issue worth filing in the main ReactFlow repo? I couldn't easily recreate on any of the official example sandboxes so thought it was worth raising here first.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.