MCPcopy Create free account
hub / github.com/adobe/react-spectrum / ProgressBar

Function ProgressBar

starters/docs/src/ProgressBar.tsx:13–30  ·  view source on GitHub ↗
({label, ...props}: ProgressBarProps)

Source from the content-addressed store, hash-verified

11}
12
13export function ProgressBar({label, ...props}: ProgressBarProps) {
14 return (
15 <AriaProgressBar {...props}>
16 {({percentage, valueText, isIndeterminate}) => (
17 <>
18 <Label>{label}</Label>
19 <span className="value">{valueText}</span>
20 <div className="track inset">
21 <div
22 className="fill"
23 style={{'--percent': (isIndeterminate ? 100 : percentage) + '%'} as any}
24 />
25 </div>
26 </>
27 )}
28 </AriaProgressBar>
29 );
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected