File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ There is an implementation of a custom edge in the [edges example](/example/src/
243
243
244
244
### Background
245
245
246
- React Flow comes with two background variants: ** dots** and ** lines** .
246
+ React Flow comes with two background variants: ** dots** and ** lines** . You can use it by passing it as a children to the React Flow component:
247
247
248
248
``` javascript
249
249
import ReactFlow , { Background } from ' react-flow-renderer' ;
@@ -263,8 +263,8 @@ const FlowWithBackground = () => (
263
263
264
264
- ` variant ` : string - has to be 'dots' or 'lines' - default: ` dots `
265
265
- ` gap ` : number - the gap between the dots or lines - default: ` 16 `
266
- - ` size ` : number - the radius of the dots or the stroke width of the lines - default: 0.5
267
- - ` color ` : string - the color of the dots or lines - default: ` #999 ` for dots, ' #eee' for lines
266
+ - ` size ` : number - the radius of the dots or the stroke width of the lines - default: ` 0.5 `
267
+ - ` color ` : string - the color of the dots or lines - default: ` #999 ` for dots, ` #eee ` for lines
268
268
- ` style ` : css properties
269
269
- ` className ` : class name
270
270
You can’t perform that action at this time.
0 commit comments