进度旋转器

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


import { ProgressSpinner } from 'primereact/progressspinner';
         

默认显示无限旋转动画。


<ProgressSpinner />
         

ProgressSpinner 可以使用样式属性(如stylestrokeWidthfill)进行自定义。


<ProgressSpinner style={{width: '50px', height: '50px'}} strokeWidth="8" fill="var(--surface-ground)" animationDuration=".5s" />
         

屏幕阅读器

ProgressSpinner 组件使用 progressbar 角色。可以使用 aria-labelledbyaria-label 属性定义描述组件的值。


<ProgressSpinner aria-label="Loading" />
 

键盘支持

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