A powerful and flexible React application for creating interactive system architecture diagrams and workflow visualizations using React Flow. Built with React, TypeScript, and Vite.
# Clone the repository
git clone https://github.com/cherninlab/react-flow-visualizer.git
# Navigate to project directory
cd react-flow-visualizer
# Install dependencies
npm install
# Start development server
npm run dev
interface CustomSquareNodeData {
label: string;
iconName: string;
iconType: 'lucide' | 'radix' | 'local';
sourcePosition?: Position;
targetPosition?: Position;
}
- Create a new CSS file in
src/themes/
:
.react-flow[data-theme='your-theme'] {
--icon-size: 48px;
--margin: 16px;
/* Add more variables */
}
- Register in
ThemeSelector.tsx
:
const themes = [
{ value: 'default', label: 'Default' },
{ value: 'your-theme', label: 'Your Theme' },
];
-
Node Icons Not Loading
# Check if icons are in the correct directory public/icons/
We welcome contributions!
This project is licensed under the MIT License
- React Flow for the core functionality
- Monaco Editor for the code editing experience