纵深轮播 <DepthCarousel />
卡片排在一条向远处退去的 3D 轨道上;每按一次 → 下一站来到最前面,其余后退变淡。底部一排小标记显示当前位置。
Template and style descriptions are currently available in Chinese only.
- Group
- 路线 · 3–6 站依次讲
- Component
DepthCarousel·#depth-carousel- Interaction
- build: reveal 时每步换到下一站;完成态停在最后一站
Good for
- 路线、站点、版本这类有顺序的 3–6 项
- 每项一个大数字(年份、编号)
Avoid when
- 要一眼看全部:用 Timeline
- 项目超过 6 个
Content limits
| 1 | items 3–6 项 |
| 2 | mark ≤ 6 个字符;title ≤ 8 字;body ≤ 40 字 |
Fields
| Field | Type | |
|---|---|---|
kicker · required | string | 标题上方的小节名,2–8 字 |
title · required | string | string[] | 页面标题;传数组可手动断行,每项一行 |
lead | string | 一到两句导语,≤ 60 字 |
source | string | 事实出处;页面上有任何数据或事实时必填 |
hint | ReactNode | 页眉中间的操作提示,可用 <kbd> |
items · required | { mark, title, body }[] | 按顺序排 |
Example
<DepthCarousel kicker="西传" title="纸走过的五站" items={[{ mark: '105', title: '东汉洛阳', body: '…' }, …]} source="…" />