list

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Components: List Layout

组件:List Layout

Guides list layout design for linear, stacked content display. Lists are compact, text-heavy; users scan by title or metadata. Used for blog indexes, documentation, search results, and dense content.
When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.
指导线性堆叠内容展示的列表布局设计。列表结构紧凑、以文本为主;用户通过标题或元数据快速扫描。适用于博客索引、文档、搜索结果和高密度内容场景。
调用时:首次使用时如果适用,可以先用1-2句话介绍本技能涵盖的内容及重要性,再提供核心输出。如果是后续调用或用户要求跳过介绍,可直接给出核心输出。

When to Use List

列表适用场景

Use list whenUse grid when
Text-heavy; scan by titleVisual content; equal emphasis
Many items; compact displayFewer items; browsing
Blog index, docs, search resultsProducts, templates, gallery
F-pattern reading (top-left, left column)Discovery, exploration
See grid for grid layout; card for card structure.
适用列表的场景适用网格的场景
文本为主,用户通过标题扫描视觉内容,各内容权重均等
条目数量多,需要紧凑展示条目数量少,适合浏览
博客索引、文档、搜索结果产品、模板、图库
F型阅读模式(左上优先,沿左侧列扫描)内容发现、探索场景
参考 grid 了解网格布局;参考 card 了解卡片结构。

List Structure

列表结构

ElementPurpose
ItemsSingle column; stacked vertically
Per itemTitle, optional metadata (date, author), excerpt, link
SpacingConsistent gaps; dividers or alternating background
DensityCompact (docs) vs relaxed (blog)
元素作用
条目单列垂直堆叠排列
单条目构成标题、可选元数据(日期、作者)、摘要、链接
间距间距统一;可使用分割线或交替背景区分条目
密度紧凑型(文档场景)/宽松型(博客场景)

List Variants

列表变体

VariantUse
Simple listTitle + link; minimal (nav, TOC)
Rich listTitle, excerpt, date, author
Table-likeColumns for metadata (date, status)
With thumbnailSmall image + text
变体类型使用场景
简单列表仅标题+链接,极简结构(导航、目录)
富内容列表标题、摘要、日期、作者
类表格列表元数据分列展示(日期、状态)
带缩略图列表小图+文本

Best Practices

最佳实践

PrinciplePractice
ScannableClear titles; consistent hierarchy
CompactLess vertical space than grid
Link areaFull row or title clickable
MetadataDate, author, category; secondary styling
原则实践方案
易扫描标题清晰,层级一致
紧凑性比网格布局占用更少垂直空间
点击区域整行可点击或仅标题可点击
元数据日期、作者、分类使用次级样式展示

F-Pattern

F型阅读模式

Users read top-left first, then scan left column. Place primary content (titles) left-aligned; metadata secondary.
用户会首先阅读左上角内容,然后沿左侧列向下扫描。请将核心内容(标题)左对齐,元数据设为次级展示内容。

Infinite Scroll

无限滚动

If using infinite scroll for list (e.g., blog index, search results): crawlers cannot access content loaded on scroll. Provide paginated component pages or use traditional pagination for SEO-critical content. See site-crawlability for search-friendly infinite scroll implementation.
如果为列表(如博客索引、搜索结果)使用无限滚动:爬虫无法访问滚动后加载的内容。对于对SEO要求高的内容,请提供分页组件页面或使用传统分页方案。参考 site-crawlability 了解对搜索引擎友好的无限滚动实现方案。

Responsive

响应式适配

  • Mobile: Single column; full-width items
  • Touch targets: ≥44×44px for touchable rows
  • Truncation: Long titles; ellipsis or wrap by design
  • 移动端:单列布局,条目全宽展示
  • 触摸区域:可点击行的触摸区域大小≥44×44px
  • 文本截断:长标题可根据设计使用省略号或自动换行

Related Skills

相关技能

  • site-crawlability: Infinite scroll SEO; paginated component pages; search-friendly implementation
  • grid: Grid vs list; when to use each
  • carousel: Carousel for slides; when list is too long for space
  • card: Card in list (e.g., blog with thumbnail)
  • toc-generator: TOC as list; jump links
  • blog-page-generator: Blog index list
  • article-page-generator: Article list format
  • docs-page-generator: Documentation list
  • site-crawlability:无限滚动SEO优化、分页组件页面、搜索引擎友好实现方案
  • grid:网格vs列表,各自适用场景
  • carousel:轮播组件适用场景,空间不足无法展示完整列表时使用
  • card:列表中的卡片(如带缩略图的博客)
  • toc-generator:目录格式列表,跳转链接
  • blog-page-generator:博客索引列表
  • article-page-generator:文章列表格式
  • docs-page-generator:文档列表