CO

Controls

@reactflow/controls

Component to control the viewport of a React Flow instance

Charts
react
node-based UI
graph
diagram
workflow
react-flow
@reactflow/controls
Charts
javascript
npm
Stars
38k
Weekly
1.5M
Open issues
133
Bundle
~25 kB

Installation

npm install @reactflow/controls

Code example

import { Controls } from "@reactflow/controls";

const data = [
  { name: "Jan", value: 12 },
  { name: "Feb", value: 18 },
];

export function Example() {
  return (
    <Controls data={data} width={420} height={240}>
      {/* series / axes from Controls */}
    </Controls>
  );
}

Pros & cons

Pros

  • Actively maintained by webk1d
  • 1.5M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 133 open issues on GitHub

FAQs

Alternatives & similar libraries