跳到正文
UIGrammer
EN 中文

组件 · 内容 · 23

列表

列表 = 重复的行,每行一条主信息、可选的次要信息和一个尾部操作。

直达修改 Prompt

Export finisheddataset-march.csv · 2 min ago
Token rotatedAll integrations reconnected
Prompt archivedMoved to the 2025 folder

列表是什么?

列表是一组形状一致的行。点名行高、每行放什么,以及行与行如何分隔。

变体

点击属性即可在预览中高亮。

在 Prompt 里写明这个类型。
在 Prompt 里写明这个类型。
在 Prompt 里写明这个类型。
在 Prompt 里写明这个类型。
给具体值,不要只给感觉词。
给具体值,不要只给感觉词。
给具体值,不要只给感觉词。
给具体值,不要只给感觉词。
给具体值,不要只给感觉词。
给具体值,不要只给感觉词。

状态

点击属性即可在预览中高亮。

输入或报错前字段的默认有效状态。
指针悬停时的反馈:抬起、变色或边框变化。写清楚,别让模型自己猜。
当前选中的值或标签,需与其余项明显区分。
无数据时的状态,需给出提示与下一步操作。

结构解剖

这些是 Prompt 里应该点名的部件。

  • 01
  • 02 前置元素
  • 03 主文本
  • 04 元信息
  • 05 尾随操作

什么时候用

  • 设置与偏好项
  • 通知与动态流
  • 比卡片更密的搜索结果

什么时候别用

  • 每项都有图片和长正文——改用卡片
  • 需要横向对比——改用表格
  • 不足三项

One action per row, revealed on hover — a list with three visible buttons per row has stopped being a list.

Create a list component. STYLE - rows 48px tall, 12px radius on hover, 8px horizontal padding - primary line 14px #1D1D1F, meta line 12px #6E6E73 below it - one 1px divider between rows, none after the last - the trailing action stays hidden until row hover STATES - default, hover #F5F5F7, selected #EAF2FE with a 2px accent bar, empty TECHNICAL - React - Tailwind CSS - shadcn/ui