GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — dash-flows/examples at main · pip-install-python/dash-flows

Expand file tree

/

examples

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

examples

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
assets
assets
 
 
01_basic_nodes_and_edges.py
01_basic_nodes_and_edges.py
 
 
02_all_node_types.py
02_all_node_types.py
 
 
03_all_edge_types.py
03_all_edge_types.py
 
 
04_background_variants.py
04_background_variants.py
 
 
05_controls_and_minimap.py
05_controls_and_minimap.py
 
 
06_handle_configurations.py
06_handle_configurations.py
 
 
07_node_interactions.py
07_node_interactions.py
 
 
08_connection_validation.py
08_connection_validation.py
 
 
09_viewport_controls.py
09_viewport_controls.py
 
 
10_selection_multiselect.py
10_selection_multiselect.py
 
 
11_dark_mode_mantine.py
11_dark_mode_mantine.py
 
 
12_elk_layouts.py
12_elk_layouts.py
 
 
13_complete_showcase.py
13_complete_showcase.py
 
 
14_dash_components_in_nodes.py
14_dash_components_in_nodes.py
 
 
15_save_restore.py
15_save_restore.py
 
 
16_connection_limits.py
16_connection_limits.py
 
 
17_drag_and_drop.py
17_drag_and_drop.py
 
 
18_export_image.py
18_export_image.py
 
 
19_copy_paste.py
19_copy_paste.py
 
 
20_context_menu.py
20_context_menu.py
 
 
21_ui_components.py
21_ui_components.py
 
 
22_custom_icons.py
22_custom_icons.py
 
 
23_callback_stress_test.py
23_callback_stress_test.py
 
 
24_smart_handles.py
24_smart_handles.py
 
 
25_phase1_features.py
25_phase1_features.py
 
 
26_floating_edges.py
26_floating_edges.py
 
 
27_helper_lines.py
27_helper_lines.py
 
 
28_add_node_on_drop.py
28_add_node_on_drop.py
 
 
29_accessibility.py
29_accessibility.py
 
 
30_resize_constraints.py
30_resize_constraints.py
 
 
31_animated_layout.py
31_animated_layout.py
 
 
32_undo_redo.py
32_undo_redo.py
 
 
33_computing_flows.py
33_computing_flows.py
 
 
34_viewport_portal.py
34_viewport_portal.py
 
 
35_subflows.py
35_subflows.py
 
 
README.md
README.md
 
 

README.md

Outline

DashFlows Examples

This directory contains comprehensive examples demonstrating all features of the DashFlows component.

Running Examples

Each example can be run independently:

python examples/01_basic_nodes_and_edges.py

Most examples use dash-mantine-components for the UI controls. Install it with:

pip install dash-mantine-components

Example Index

# Example Description Port
01 Basic Nodes and Edges Fundamental building blocks 8050
02 All Node Types Default, Input, Output, Group, Toolbar, Resizable, Circle 8051
03 All Edge Types Straight, Step, SmoothStep, SimpleBezier, Button 8052
04 Background Variants Dots, Lines, Cross patterns 8053
05 Controls and MiniMap Zoom, fit view, navigation 8054
06 Handle Configurations Multiple handles, positions, styling 8055
07 Node Interactions Click, drag, selection callbacks 8056
08 Connection Validation Rules, validation, visual feedback 8057
09 Viewport Controls Zoom, pan, fit view, locks 8058
10 Selection and Multi-Select Single, multi, box selection 8059
11 Dark Mode with Mantine Theme integration, CSS variables 8060
12 ELK Layouts Automatic layout algorithms 8061
13 Complete Showcase All features combined 8062

Features Covered

Node Types

  • default: Standard node with source and target handles
  • input: Entry node with only source handle (green accent)
  • output: Exit node with only target handle (purple accent)
  • group: Container node that holds child nodes
  • toolbar: Node with action toolbar on selection
  • resizable: Node with resize handles
  • circle: Animated circular node

Edge Types

  • default: React Flow's built-in bezier curve
  • straight: Direct line connection
  • step: Right-angled path with sharp corners
  • smoothstep: Right-angled with rounded corners
  • simplebezier: Simple curved line
  • button: Edge with interactive delete button
  • animated: Edge with animation using Dash components

Background Options

  • dots: Grid of dots (default)
  • lines: Horizontal and vertical lines
  • cross: Crosshatch pattern
  • Custom colors, gaps, and sizes

Interactive Features

  • Node drag and drop
  • Edge creation by connecting handles
  • Selection (single, multi, box)
  • Zoom and pan
  • Fit view
  • MiniMap navigation

Theming

  • Apple-inspired glass morphism design
  • Light and dark mode support
  • Integration with dash-mantine-components
  • CSS custom properties for customization

Layout Algorithms (ELK)

  • Layered (hierarchical) - all directions
  • Force-directed
  • Radial
  • Stress

Glass UI Styling

DashFlows uses a glass morphism design inspired by Apple's UI. The styling is implemented using CSS custom properties that automatically adapt to light and dark modes.

Key CSS variables:

  • --df-glass-blur: Blur amount for glass effect
  • --df-node-bg: Node background color
  • --df-edge-color: Edge stroke color
  • --df-handle-bg: Handle background color

See src/lib/styles/glass-theme.css for the complete list of variables.

Integration with Dash Mantine Components

DashFlows automatically detects the Mantine color scheme via the data-mantine-color-scheme attribute. Simply wrap your app in MantineProvider and toggle the theme - DashFlows will update automatically.

import dash_mantine_components as dmc

app.layout = dmc.MantineProvider(
    forceColorScheme="dark",  # or "light"
    children=[
        dash_flows.DashFlows(...)
    ]
)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.