進度旋轉器

ProgressSpinner 是一個進度狀態指示器。


import ProgressSpinner from 'primevue/progressspinner';

預設會顯示無限旋轉動畫。


<ProgressSpinner />

ProgressSpinner 可以使用樣式屬性(例如stylestrokeWidth fillanimationDuration)進行自訂。


<ProgressSpinner style="width: 50px; height: 50px" strokeWidth="8" fill="transparent"
    animationDuration=".5s" aria-label="Custom ProgressSpinner" />

螢幕閱讀器

ProgressSpinner 元件使用 progressbar 角色。可以使用 aria-labelledbyaria-label 屬性定義描述元件的值。


<ProgressSpinner aria-label="Loading" />

鍵盤支援

元件不包含任何互動元素。