Skip to content

Blueprint Controls

Last updated 24 Nov 2026

NbBlueprintControls is an optional, NubiscoUI-styled toolbar for an NbBlueprint canvas: zoom, fit, center, auto-layout, and a contextual alignment cluster. It is wired entirely to the blueprint through useBlueprint(), so it needs no event plumbing from the host.

It is built on NbCanvasControls, the generic version for any canvas, so it floats, groups and sizes its buttons the same way.

Place it in the blueprint's #chrome slot (it renders in viewport space, in both the windowed and legacy APIs):

vue
<template>
  <NbBlueprint :cards="cards" :connections="connections" editable>
    <template #card="{ card }">
      <NbBlueprintCard v-bind="card" />
    </template>

    <template #chrome>
      <NbBlueprintControls position="bottom-right" />
    </template>
  </NbBlueprint>
</template>

The alignment and distribution buttons appear only when two or more cards are selected (they act on the selection). Set show="edit" to reveal the whole toolbar only while the blueprint is in edit mode (the editable prop):

vue
<NbBlueprintControls
  show="edit"
  position="top-right"
  orientation="horizontal"
/>