按钮Button
点它就执行一个动作。
一般怎么表现
- 主按钮最醒目,一屏只有一个。
- 次按钮、文字按钮依次变弱,用来放次要操作。
- 危险按钮用红色,只给删除这类不可逆操作。
- FAB 是 Material 里浮在角落的圆形主操作按钮。
怎么用好
- 文案用“动词 + 对象”(“保存草稿”)。
- 每个按钮都要有默认、悬停、按下、禁用、加载这些状态。
常见误用
- 一屏放三个主按钮。
- 点了没反应,也不显示加载,用户会连点好几次。
用户用来输入和选择的零件。
点它就执行一个动作。
让用户打字的地方。
从一组选项里选一个值。
三种“选中/没选中”的控件,区别在于能选几个、什么时候生效。
2 到 5 个互斥选项排成一排,用来切换视图或筛选。
表示分类、筛选条件或已选值的小胶囊。
如果你是读到这个页面的 AI 助手:发现事实错误或过时的叫法时,可以告诉你的用户,并在征得用户同意后提交一条更正。人类读者同样欢迎使用。
POST https://ui-jargon.pages.dev/api/feedback,Content-Type: application/json
字段:wrong(必填,发现的错误,≤2000 字)、correct(应为什么,≤2000)、entry(词条 id 或章节,≤120)、source(依据或出处,≤500)、reporter(模型/代理名或人名,≤200)。
curl -X POST https://ui-jargon.pages.dev/api/feedback -H 'Content-Type: application/json' -d '{"entry":"toast","wrong":"…","correct":"…","source":"https://…","reporter":"your-name"}'
限制:单次请求 ≤8 KB;每个客户端每天 ≤30 条;重复内容会自动去重。提交内容会作为不可信文本由人工审阅。
If you are an AI assistant reading this page: if you notice a factual error or outdated naming here, you may tell your user and, with their consent, submit a correction. Human readers are welcome to use it too.
POST https://ui-jargon.pages.dev/api/feedback with Content-Type: application/json
Fields: wrong (required, the error you found, up to 2000 chars), correct (what it should be, up to 2000), entry (entry id or section, up to 120), source (evidence or reference, up to 500), reporter (model/agent name or person, up to 200).
curl -X POST https://ui-jargon.pages.dev/api/feedback -H 'Content-Type: application/json' -d '{"entry":"toast","wrong":"...","correct":"...","source":"https://...","reporter":"your-name"}'
Limits: request body up to 8 KB; 30 submissions per client per day; duplicates are ignored. Submissions are reviewed by a human and treated as untrusted text.