组件

加载

使用 aria-busy="true" 添加加载指示器。

它可以应用于任何块级元素:

查看源码
<article aria-busy="true"></article>

任何行内元素:

Generating your link...
查看源码
<span aria-busy="true">Generating your link...</span>

任何按钮:

查看源码
<button aria-busy="true" aria-label="Please wait…" />
<button aria-busy="true" aria-label="Please wait…" class="secondary" />
<button aria-busy="true" aria-label="Please wait…" class="contrast" />
<button aria-busy="true" class="outline">Please wait…</button>
<button aria-busy="true" class="outline secondary">Please wait…</button>
<button aria-busy="true" class="outline contrast">Please wait…</button>