Callout 提示块
醒目的提示区块,支持标题、正文和语义色调。
使用提示
- 适合:操作说明、注意警告、成功提示、建议信息。
- 不适合:纯状态标签(应当用 badge)、需要独立流程的交互内容(应拆成页面内区域)。
- 关联组件:badge 紧凑标签,toast 临时反馈。
- 子组件可嵌套在 callout 内扩展正文区域。
- tone 只表达语义状态,不作为任意样式选择器。
tone 变体
namespace: "doc_callout_tone_diff",
layout: {
"column:tones": {
"callout:info": {
tone: "info",
title: "信息",
text: "这是一条说明信息。"
},
"callout:success": {
tone: "success",
title: "成功",
text: "操作已完成。"
},
"callout:warning": {
tone: "warning",
title: "警告",
text: "继续前请复核。"
},
"callout:danger": {
tone: "danger",
title: "危险",
text: "此操作无法撤销。"
}
}
}
}