Skip to content

Blueprint Background

Last updated 27 Oct 2026

NbBlueprintBackground is an optional, drop-in backdrop for an NbBlueprint canvas: a grid, dots, or lines pattern with full control over colour, spacing, and thickness. It reads the camera from useBlueprint() and pans/zooms with the scene, so it needs no wiring from the host.

Props ​

PropTypeDefaultDescription
variant'grid' | 'dots' | 'lines' | 'none''dots'Pattern to paint. 'grid' adds heavier major lines; 'none' renders nothing.
colorstringtheme border colourLine/dot colour (any CSS colour). Falls back to --nb-blueprint-grid-color, then the theme border.
gapnumber24Cell spacing in canvas px (the minor grid pitch).
thicknessnumber1Line/dot thickness in px.
secondaryColorstringcolorColour of the major lines in the grid variant.
secondaryGapnumbergap * 5Spacing of the major lines in the grid variant, canvas px.