BA

Background

@reactflow/background

Background component with different variants for React Flow

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

Installation

npm install @reactflow/background

Code example

import { Background } from "@reactflow/background";

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

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

Pros & cons

Pros

  • Actively maintained by webk1d
  • 2.0M 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