-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathProgress.tsx
49 lines (45 loc) · 1.46 KB
/
Progress.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import React from 'react';
import { Button, LoadingSpinner } from '@deephaven/components';
import SampleSection from './SampleSection';
function Progress(): React.ReactElement {
return (
<SampleSection name="progress">
<h2 className="ui-title">Progress</h2>
<div className="row">
<div className="col">
<h5>Determinate Progress Loader</h5>
<br />
<div className="progress" style={{ marginBottom: '1rem' }}>
<div
className="progress-bar bg-primary"
style={{ width: '25%' }}
aria-valuenow={25}
aria-valuemin={0}
aria-valuemax={100}
/>
</div>
</div>
<div className="col">
<h5>Indeterminate Progress Spinner</h5>
<LoadingSpinner className="loading-spinner-large" />
</div>
<div className="col">
<h5>Button Progress Spinner</h5>
<Button
kind="primary"
className="btn-spinner btn-cancelable"
style={{ minWidth: '10rem' }}
onClick={() => undefined}
>
<span>
<LoadingSpinner className="mr-2 loading-spinner-vertical-align" />
<span className="btn-normal-content">Connecting</span>
<span className="btn-hover-content">Cancel</span>
</span>
</Button>
</div>
</div>
</SampleSection>
);
}
export default Progress;