2.5.0 • Published 6 months ago

@elvia/elvis-progress-linear v2.5.0

Weekly downloads
172
License
MIT
Repository
-
Last release
6 months ago

Elvis Progress-linear

The progress-linear component is a display of current completion of an item/data loading. The progressbar is called upon by feeding it a value, a number between 0 and 100. The Progressbar will not display any progress beyond these limits.

Instead of a displaying a progress range from 0 - 100, you can also use the progress linear to represent an indeterminate amount. Simply pass "true" to the Isindeterminate boolean property.

In the instance of a failure you can pass true to the isError boolean property to display a failed progress.

Props

  • value (number) - The percentage value of completion
  • isIndeterminate (boolean) - For indeterminate loading
  • isError (boolean) - For displaying an error in the progress completion.

Hierarchy of props

Note that if error is set to true the style of the progressbar will be in the error format and override any default style with range or indeterminate style. If indeterminate is set to true, this will always override default progressbar style with range of completion.

REACT COMPONENT

import { ProgressLinear } from '@elvia/elvis-progress-linear/react';
<ProgressLinear
  value={progressValue}
  isError={false}
  isIndeterminate={false}>
</ProgressLinear>

WEB COMPONENT (Angular, Vue, etc)

// in app.module.ts
import '@elvia/elvis-progress-linear';
// In an angular:

// app.component.ts
  progressValue = 0;
  indeterminate = false;
  progressError = false;

// app.component.html

<elvia-progress-linear
  [value]="progressValue"
  [isIndeterminate]="indeterminate"
  [isError]="progressError">
</elvia-progress-linear>
2.5.0

6 months ago

2.4.1

7 months ago

2.4.0

9 months ago

2.3.4

10 months ago

2.3.0

1 year ago

2.3.2

1 year ago

2.3.1

1 year ago

2.3.3

11 months ago

2.2.0

1 year ago

2.0.4

1 year ago

2.1.0

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

2.0.0

2 years ago

1.3.0

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.2

2 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago