← All templates

架构分层图 <ArchLayers />

3–5 条横向分层,左边层名和等宽标签,右边一排组件块;可以高亮一层。

Template and style descriptions are currently available in Chinese only.

Group
机制 · 系统由哪几层组成
Component
ArchLayers · #arch-layers

Good for

  • 软件架构、组织层级、技术栈
  • 每层有 2–5 个组成部分

Avoid when

  • 层与层之间是包含关系:用 Concentric
  • 要讲数据怎么流动:用 FlowDiagram

Content limits

1layers 3–5 层:name ≤ 8 字,tag ≤ 16 字符,items 2–5 个各 ≤ 10 字符

Fields

FieldType
kicker · requiredstring小节名,2–8 字
title · requiredstring | string[]标题;数组手动断行
leadstring一两句导语,≤ 60 字
sourcestring事实出处
layers · required{ name, tag?, items }[]从最靠近用户的一层写起
focusnumber高亮第几层(从 0 起)

Example

<ArchLayers kicker="架构" title="…" focus={0} layers={[{ name: '演示', tag: 'src/decks', items: ['index.tsx'] }, …]} />