The Background component comes with three background variants: dots, lines and cross. You can use it by passing it as a child to the
It's possible to add multiple
Background components. Be aware that you need to add a unique id to each Background if you want to do this:
'lines' | 'dots' | 'cross'
number | [number, number]
1 if variant == 'dots' | 6 if variant == 'cross'
The type of the Background Prop Types are exported as
The background component is published under
@reactflow/background and can also be installed and used separately.