VISUALLIdesign system

Canvas

CanvasControls

Floating zoom toolbar: zoom out, percentage, zoom in, Fit map to view — plus any extra icon buttons.

Live previewOpen ↗

Props

export interface CanvasControlsProps {
  zoom?: number;
  onZoomIn?: () => void;
  onZoomOut?: () => void;
  /** Fit map to view: reset zoom and pan so the whole layer shows (corner-frame icon — not full screen). */ onFit?: () => void;
  /** Already fitted: Fit is disabled. */ fitted?: boolean;
  /** Shown only when passed — e.g. after ideas were moved. */ onResetLayout?: () => void;
  extra?: ReactNode
}

Use

import { CanvasControls } from '@visualli/design-system/components';

Source: components/src/ · Guidelines: components/catalog/CanvasControls/README.md