ProgressSpinner 是一個進度狀態指示器。
import ProgressSpinner from 'primevue/progressspinner';
預設會顯示無限旋轉動畫。
<ProgressSpinner />
ProgressSpinner 可以使用樣式屬性(例如style、strokeWidth fill 和 animationDuration)進行自訂。
<ProgressSpinner style="width: 50px; height: 50px" strokeWidth="8" fill="transparent"
animationDuration=".5s" aria-label="Custom ProgressSpinner" />
ProgressSpinner 元件使用 progressbar 角色。可以使用 aria-labelledby 和 aria-label 屬性定義描述元件的值。
<ProgressSpinner aria-label="Loading" />
元件不包含任何互動元素。