The dropdown now correctly reflects the current example after a page refresh. This is achieved by parsing the example name from the URL and setting the dropdown's initial state accordingly. Also, an has been added to the dropdown for improved accessibility.
React Flow examples
This Vite app is used internally to develop and test the library.
Start local dev server
pnpm dev
Adding new example
Development of the library is done against src/examples. Feel free to add new implementations for features that you develop.
- Create a new folder & flow at
src/examples/ - Register the new route in
src/App/routes.ts
Adding new E2E implementation
E2E testing is done against the flows implemented in src/generic-tests. Adding a new configuration file automatically adds a new route under http://localhost:3000/tests/generic/$foldername/$filename. For further documentation visit xyflow/tests/playwright.