MCPcopy Create free account
hub / github.com/flyfloor/react-component / render

Function render

component/Progress.js:18–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 },
17
18 render() {
19 let {value, className, status, disabled, children} = this.props;
20 if (value < 0) value = 0;
21 if (value > 100) value = 100;
22 className = klassName(className, 'progress');
23
24 if (status) {
25 className += ` _${status}`;
26 }
27 if (disabled) {
28 className += ` _disabled`;
29 }
30 if (value === 100) {
31 className += ' _completed';
32 }
33 if (children) {
34 className += ' _context';
35 }
36
37
38 return (
39 <div className={className}>
40 <div className="_progress" style={{'width': `${value}%`}}>
41 {children}
42 </div>
43 </div>
44 );
45 }
46});
47
48module.exports = Progress;

Callers

nothing calls this directly

Calls 1

klassNameFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…