18 Star 32 Fork 2

LCUI 开发 / lc-design

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
alerts.md 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
liu 提交于 2019-07-28 17:51 . refactor: rename to LCDesign, update xml code

Alerts

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

Examples

Alerts are available for any length of text, as well as an optional dismiss button. For proper styling, use one of the eight required contextual classes (e.g., .alert-success).

<alert class="alert alert-primary">
  This is a primary alert—check it out!
</alert>
<alert class="alert alert-secondary">
  This is a secondary alert—check it out!
</alert>
<alert class="alert alert-success">
  This is a success alert—check it out!
</alert>
<alert class="alert alert-danger">
  This is a danger alert—check it out!
</alert>
<alert class="alert alert-warning">
  This is a warning alert—check it out!
</alert>
<alert class="alert alert-info">
  This is a info alert—check it out!
</alert>
<alert class="alert alert-light">
  This is a light alert—check it out!
</alert>
<alert class="alert alert-dark">
  This is a dark alert—check it out!
</alert>

Dismissing

Add a dismiss button and the .alert-dismissible class, which adds extra padding to the right of the alert and positions the .close button.

On the dismiss button, add the data-dismiss="alert" attribute, which triggers the C functionality.

<alert class="alert alert-warning alert-dismissible">
  <strong class="mr-1">Holy guacamole!</strong>
  <text>You should check in on some of those fields below.</text>
  <button class="close" data-dismiss="alert">&#215;</button>
</alert>
C
1
https://gitee.com/lcui-dev/lc-design.git
git@gitee.com:lcui-dev/lc-design.git
lcui-dev
lc-design
lc-design
develop

搜索帮助