본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

로딩 (Loading)

원문 보기 위키 갱신

aria-busy="true"만 붙이면 자바스크립트 없이도 로딩 인디케이터를 추가할 수 있어요. Pico가 해당 요소에 로딩 애니메이션을 자동으로 적용해주니까, 어떤 블록이든 인라인 요소든 버튼이든 간단하게 사용할 수 있답니다.

출처: 문서

본문

어떤 블록에도 적용할 수 있어요:

<article aria-busy="true"></article>

인라인 요소에도 적용할 수 있어요:

<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>

더 알아보기 (Learn more)