This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
ProgressBarPage.tsx
46 lines (44 loc) · 2.1 KB
/
ProgressBarPage.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
import * as React from 'react';
import {Page, Navbar, Left, Right, Center, ColorsEnum, PageBody, PageContent, ContentBlock, ListBlock, ListItem, Icon, BackButton, ProgressBar} from 'framework7-react';
import {routeState} from '../../utils/RouteState';
export const ProgressBarPage = () => {
return (
<Page name="buttons">
<Navbar>
<Left><BackButton onClick={() => routeState.navigate('/', true)} /></Left>
<Center>Progress Bar</Center>
<Right />
</Navbar>
<PageBody>
<PageContent>
<ContentBlock>
<p>
Framework7 has two different styles of progress bars...determinate
(accepts a progress percentage number to update itself) and indeterminate/infinite
(when no progress number can be calculated) to indicate activity:
</p>
</ContentBlock>
<ListBlock title="Determinate progress bars:">
<ListItem>
<ProgressBar infinite={false} progress={25} color={ColorsEnum.Blue} />
</ListItem>
<ListItem>
<ProgressBar infinite={false} progress={50} color={ColorsEnum.Red} />
</ListItem>
<ListItem>
<ProgressBar infinite={false} progress={75} color={ColorsEnum.Green} />
</ListItem>
<ListItem>
<ProgressBar infinite={false} progress={100} color={ColorsEnum.Orange} />
</ListItem>
</ListBlock>
<ListBlock title="Infinite/Indeterminate progress bar:">
<ListItem>
<ProgressBar infinite={true} color={ColorsEnum.Multi} />
</ListItem>
</ListBlock>
</PageContent>
</PageBody>
</Page>
);
};