UNPKG

865 BMarkdownView Raw
1@# Progress bar
2
3Progress bars indicate progress towards the completion of a task or an
4indeterminate loading state.
5
6@reactExample ProgressExample
7
8@## Props
9
10`ProgressBar` is a simple stateless component that renders the appropriate HTML
11markup. It supports a `value` prop between 0 and 1 that determines the width of
12the progress meter. Omitting `value` will result in an "indeterminate" progress
13meter that fills the entire bar.
14
15@interface IProgressBarProps
16
17@## CSS
18
19Set the current progress of the bar via a `width` style rule on the inner
20`.@ns-progress-meter` element. This is a very simple CSS-only component, and
21input validation for `width` values is limited: values above `100%` appear as
22100% progress and values below `0%` appear as 0%.
23
24Omitting `width` will result in an "indeterminate" progress meter that fills the
25entire bar.
26
27@css progress-bar