← All templates

Stepped layers <StackBars />

3–6 horizontal bars offset to the right layer by layer from top to bottom, the colour deepening from the theme colour, each with a name on the left and one line of description on the right. Designed for the broadside style; other styles work too. With build: 'reveal' the layers appear one by one.

Group
Structure · horizontal bars offset layer by layer
Component
StackBars · #stack-bars
Interaction
Press → layers appear one by one

Good for

  • A layered structure: a technology stack, an organisation hierarchy or priorities
  • Layers that depend on the ones below

Avoid when

  • The layers have a quantity relationship: use Funnel or Pyramid
  • Each layer needs a detailed explanation: use LayerStack

Content limits

1layers 3–6, top to bottom
2name ≤ 8 chars
3note ≤ 20 chars
4slide title ≤ 22 chars

Fields

FieldType
kicker · requiredstringSection label
title · requiredstring | string[]Title
leadstringLead
layers · required{ name, note }[]Layers, top to bottom
sourcestringSource

Example

<StackBars
  kicker="分层"
  title="一份演示由五层叠成"
  layers={[{ name: '内容', note: 'src/decks 里的 deck 文件' }, …]}
/>