@vue-flow/monorepo • Docs
Interface: BackgroundProps ​
Properties ​
color? ​
optionalcolor:string
The background pattern color
This only changes the color of the pattern, not the background color itself.
If you want to change the background color itself, you can apply a bg-color to the <VueFlow> element instead
gap? ​
optionalgap:number|number[]
The background pattern gap
Can be either a number or [xGap: number, yGap: number], defining the gap on the X and Y axis respectively
Default ​
20id? ​
optionalid:string
<Background> component id
This is necessary when you have multiple flows with backgrounds visible at the same time. If no id is explicitly assigned, an auto-generated one is used.
Default ​
pattern-${vueFlowId}${id ? -${id} : ''}
lineWidth? ​
optionallineWidth:number
Default ​
1offset? ​
optionaloffset:number| [number,number]
Background pattern offset
Default ​
0size? ​
optionalsize:number
Background pattern size
Default ​
1variant? ​
optionalvariant:BackgroundVariant
The background pattern variant BackgroundVariant
Default ​
'dots'x? ​
optionalx:number
Background x-coordinate (offset x)
Default ​
0y? ​
optionaly:number
Background y-coordinate (offset y)
Default ​
0