sigilUI

Exploded View

Reveal the layers that make up an object or interface.

@sigil-ui/componentsReact

Preview

Exploded system layers Interactive

Import

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

Usage

<ExplodedView
    gap="var(--s-space-3)"
    layers={[
      { label: "Experience", children: <div className="text-sm text-[var(--s-text)]">Components and blocks</div> },
      { label: "Constraints", children: <div className="text-sm text-[var(--s-text)]">519 design tokens</div> },
      { label: "Foundation", children: <div className="text-sm text-[var(--s-text)]">CSS custom properties</div>, hatched: true },
    ]}
  />

Props

PropTypeDefaultDescription
layersExplodedViewLayer[]—Layers to display from top to bottom.
gapstring2remGap between layers.

Token integration

CSS VariablePurpose
--s-radius-mdRadius md
--s-borderBorder
--s-surfaceSurface
--s-textText
--s-font-monoFont mono
--s-text-mutedText muted