进度指示器

ProgressSpinner 是一个进程状态指示器。


import ProgressSpinner from 'primevue/progressspinner';

默认显示无限旋转动画。


<ProgressSpinner />

ProgressSpinner 可以通过 stylestrokeWidthfillanimationDuration 等样式属性进行自定义。


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

键盘支持

该组件不包含任何交互元素。