sigilUI

Stack Diagram

Illustrate the layers of a system.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

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

Usage

<StackDiagram title="Application layers" layers={[{ label: "Interface", children: "Pages and reusable components" }, { label: "Services", children: "Business logic and workflows", accent: true }, { label: "Storage", children: "Persistent application data", hatched: true }]} />

Props

PropTypeDefaultDescription
layers (required)StackLayer[]—Layers configuration.
titlestring—Heading displayed in the component.
gapstring—Gap configuration.
tiltboolean—Tilt configuration.
interactiveboolean—Interactive configuration.

Token integration

CSS VariablePurpose
--s-text-mutedText muted
--s-font-monoFont mono
--s-radius-mdRadius md
--s-duration-fastDuration fast
--s-primaryPrimary
--s-borderBorder
--s-primary-contrastPrimary contrast
--s-surfaceSurface
--s-border-mutedBorder muted