Kinetic UI
Back to Introduction
Layout

Minimap

A Figma-style floating minimap for navigating large scrollable canvases.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add minimap

The Minimap component is a small, floating overview widget that gives users a bird's-eye view of a large virtual canvas. It renders colored rectangles for every item on the board and a white viewport indicator showing the currently visible area.

Users can click or drag anywhere inside the minimap to instantly teleport the main viewport to that region of the canvas.

It's designed to pair perfectly with our DraggableCanvas, PhysicsCanvas, or ForceGraph components, but it works with any scrollable or pannable surface since it uses a fully controlled props API.

Live Preview

Minimap

Drag the canvas or drag inside the minimap to navigate.

🔐

User Auth Flow

Active
💳

Payment Gateway

Active
⚡

API Layer

Active
📊

Dashboard UI

Active
🔔

Notifications

Active
📈

Analytics Engine

Active
🛡️

Error Handling

Active
🧊

Cache Strategy

Active
🌐

CDN Config

Active
🤖

ML Pipeline

Active
📝

Logging

Active
🔌

WebSocket Hub

Active
Minimap

Installation

npx kinetic-ui-cli@latest add minimap

[!TIP] Controlled Architecture: The minimap is fully controlled via props. It does not manage its own scroll state. This makes it trivially composable with any canvas system—just wire up viewportX, viewportY, and onViewportChange.

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { Minimap } from "@/components/creative/minimap";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { Minimap } from "@/components/creative/minimap";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <Minimap
        canvasWidth{10}
        canvasHeight{10}
        viewportX{10}
      />
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.