sigilUI

Isometric Stack Diagram

A 3D isometric stack of labeled layers rendered as an SVG with configurable dimensions and hatching.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { IsometricStackDiagram } from "@sigil-ui/components";

Usage

<IsometricStackDiagram layers={[{ label: "Application" }, { label: "Services", hatched: true }, { label: "Infrastructure" }]} />

Custom dimensions and colors

<IsometricStackDiagram
  width={160}
  layerHeight={28}
  gap={6}
  layers={[
    { label: "UI", color: "var(--s-primary)" },
    { label: "API", color: "var(--s-surface)" },
    { label: "DB", color: "var(--s-surface)", hatched: true },
  ]}
/>

Props

PropTypeDefaultDescription
layersIsoStackLayer[]—Array of { label, color?, hatched? } (required)
logoReactNode—Optional logo element
widthnumber120Width of each layer in isometric units
layerHeightnumber20Height of each layer in isometric units
gapnumber4Vertical gap between layers
classNamestring—Additional CSS classes

Plus all standard <svg> HTML attributes.