警告条
页面顶部或表单上方的状态横幅:成功绿、警告黄、错误红,带关闭按钮。 打扰程度:★★★☆☆ 中打扰:常驻页面顶部,需手动关闭;适合必须被看到但不紧急的信息。
中断
手动关闭
✓ 已保存
⚠ 余额不足,请充值
✕ 提交失败,请重试
ℹ 新版本 v2.4 已发布
点击 ✕ 关闭
实现提示词
Alert banner above the form: red error bar on submit failure, dismissible.Alert banner that slides down from the top (300ms spring), dismisses with slide-up.设计规范条目
### Alert (#alert) Category: Feedback Alert: A status banner at the top of the page or form: green for success, yellow for warning, red for error, with a close button. - Do: Alert banner above the form: red error bar on submit failure, dismissible With motion: Alert banner that slides down from the top (300ms spring), dismisses with slide-up. Live demo: https://uidesignmd.com/guides/alert/