<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kole UI · 警告 Alert（普通 H5）</title>
<link rel="stylesheet" href="../.design_library/kole-ui/colors_and_type.css"><link rel="stylesheet" href="Alert.css">
<style>.demo{padding:24px;background:var(--kole-color-page-bg);font-family:var(--kole-font-family)}.demo h1{margin:0 0 4px;font-size:20px;color:var(--kole-color-text-title)}.sub{margin:0 0 20px;color:var(--kole-color-text-secondary);font-size:12px}.demo-block{padding:16px;margin-bottom:16px;background:var(--kole-color-card-bg);border:1px solid var(--kole-color-border);border-radius:var(--kole-radius-large)}.demo-block h2{margin:0 0 12px;font-size:14px;color:var(--kole-color-text-title)}.row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.demo-note{margin:12px 0 0;color:var(--kole-color-text-secondary);font-size:12px}</style></head>
<body><div class="demo"><h1>警告 Alert（纯 H5）</h1><p class="sub">在页面内持续展示风险、限制、成功结果或操作说明。</p><div class="demo-block"><h2>默认与常用变体</h2><div class="row kole-alert"><div class="kole-alert-alert" role="alert"><span><strong>系统提示</strong><br><span class="kole-alert-desc">请检查当前配置后继续。</span></span><button class="kole-alert-close" type="button" aria-label="关闭" data-close>×</button></div></div></div><div class="demo-block"><h2>状态与使用场景</h2><div class="row kole-alert"><div class="kole-alert-surface" style="padding:12px">在页面内持续展示风险、限制、成功结果或操作说明。</div><span class="kole-alert-desc">支持键盘焦点、状态反馈和令牌化样式。</span></div><p class="demo-note">零运行时依赖；数据请求、权限和国际化由宿主接入方决定。</p></div></div><script>(function () { document.querySelector('.kole-alert [data-close]').addEventListener('click', function () { this.closest('.kole-alert-alert').hidden = true; }); }());</script></body></html>