Installation
Install react-flow-scrollbar and import its stylesheet alongside React Flow's.
Install the package
npm install react-flow-scrollbarpnpm add react-flow-scrollbaryarn add react-flow-scrollbarPeer dependencies:
@xyflow/react >=12andreact ^18 || ^19. They are not bundled — you already have them in a React Flow app.
Import the styles
The scrollbars are styled with plain CSS variables, so you import one stylesheet — after React Flow's own stylesheet:
import '@xyflow/react/dist/style.css';
import 'react-flow-scrollbar/styles.css';That's all the setup. Head to the Quick Start for a working, interactive example with its full source.