Progress Group 孟帅、吴甲明 November 2, 2026 About 3 min Start with the basic example, then compare related settings before moving to controlled, asynchronous or combined use cases.
max: Sets the upper bound.Configuration Purpose Related examples itemsSegment data Progress group sizes and colors sizeTrack size Progress group sizes and colors colorDefault color for segments without their own color Progress group sizes and colors show-textShow the summed percentage Progress group sizes and colors
Compare segment sizes and color overrides separately from orientation, circular layouts, overflow and keyboard interaction.
Configuration Purpose Related examples itemsSegment data Orientation show-textShow the summed percentage Orientation orientationHorizontal/vertical orientation of the linear progress track, default horizontal; only used for mode=line Orientation sizeTrack size Orientation
size: Controls the component size.Configuration Purpose Related examples modeDisplay mode Circle itemsSegment data Circle show-textShow the summed percentage Circle circle-sizeDiameter in circle mode Circle stroke-widthTrack width in circle mode Circle
Preview configuration: mode="circle", :items="items", show-text, :circle-size="168".
Configuration Purpose Related examples itemsSegment data Overflow Keyboard maxTotal used to calculate segment proportions Overflow Keyboard tooltipWhether to show segment hover/focus hints Overflow Keyboard show-textShow the summed percentage Overflow Keyboard aria-labelAccessible group name Overflow Keyboard modeDisplay mode Overflow Keyboard
max: Sets the upper bound.Horizontal segments, highlights and tooltips share a logical start. Vertical progress stays top to bottom; circular angles and data order are preserved.
Prop Description Type Default aria-label Accessible group name string— items Segment data ProgressGroupItem[][]mode Display mode 'line' | 'circle''line'max Total used to calculate segment proportions number100show-text Show the summed percentage booleanfalsesize Track size 'xs' | 'sm' | 'md' | 'lg' | 'xl''md'color Default color for segments without their own color stringcontent-brandcircle-size Diameter in circle mode number | string120stroke-width Track width in circle mode number8tooltip Whether to show segment hover/focus hints booleantrueorientation Horizontal/vertical orientation of the linear progress track, default horizontal; only used for mode=line 'horizontal' | 'vertical''horizontal'
Prop Description Type label Legend label stringvalue Segment value numbercolor Segment color stringicon Legend icon component Componentslot Custom slot-name prefix stringtip Custom hint text string
Name Slot arguments text { percent, value, max }tooltip { item, index, percent }item / item-leading / item-label / item-trailing { item, index, percent }
Variable Default --c-progress-group-gapvar(--c-sys-space-3)--c-progress-group-item-gapvar(--c-sys-space-2)--c-progress-group-dot-sizevar(--c-sys-space-4)--c-progress-group-radius9999px--c-progress-group-track-colorvar(--c-sys-color-state-hover)--c-progress-group-text-colorvar(--c-sys-color-content-primary)--c-progress-group-muted-colorvar(--c-sys-color-content-secondary)--c-progress-group-font-sizevar(--c-sys-font-size-sm)--c-progress-group-tooltip-bgvar(--c-sys-color-surface-tooltip)--c-progress-group-tooltip-colorvar(--c-sys-color-content-on-dark)
Graphic markers default to system content-brand. Color precedence: item.color → component color → default. Check custom-color contrast; geometry tokens retain platform differences.
Built-in effects respect prefers-reduced-motion: reduce. Track thickness applies to both horizontal and vertical layouts; circle geometry remains prop-driven.
Token Default --c-progress-group-transition-durationvar(--c-sys-motion-duration-standard)--c-progress-group-tooltip-durationvar(--c-sys-motion-duration-fast)--c-progress-group-tooltip-max-width240px--c-progress-group-tooltip-padding5px var(--c-sys-space-4)--c-progress-group-tooltip-radiusvar(--c-sys-radius-md)--c-progress-group-tooltip-font-sizevar(--c-sys-font-size-xs)--c-progress-group-tooltip-line-height1.4--c-progress-group-tooltip-offsetvar(--c-sys-space-4)--c-progress-group-text-font-weightvar(--c-sys-font-weight-medium)--c-progress-group-size-xs-thickness2px--c-progress-group-size-sm-thickness4px--c-progress-group-size-md-thickness8px--c-progress-group-size-lg-thickness12px--c-progress-group-size-xl-thickness16px