@blueprintjs/core
Version:
Core styles & components
36 lines (21 loc) • 1.3 kB
Markdown
@# Progress bar
**ProgressBar** indicates progress towards the completion of a task or an indeterminate loading state.
ProgressExample
@## Props interface
**ProgressBar** is a simple stateless component that renders the appropriate HTML markup. It supports a `value` prop
between 0 and 1 that determines the width of the progress meter. Omitting `value` will result in an "indeterminate"
progress meter that fills the entire bar.
ProgressBarProps
@## CSS API
<div class="@ns-callout @ns-intent-warning @ns-icon-warning-sign @ns-callout-has-body-content">
<h5 class="@ns-heading">
Deprecated API: use [`<ProgressBar>`](#core/components/progress-bar)
</h5>
CSS APIs for Blueprint components are considered deprecated, as they are verbose, error-prone, and they
often fall out of sync as the design system is updated. You should use the React component APIs instead.
</div>
Set the current progress of the bar via a `width` style rule on the inner `.-progress-meter` element. This is a very
simple CSS-only component, and input validation for `width` values is limited: values above `100%` appear as 100%
progress and values below `0%` appear as 0%.
Omitting `width` will result in an "indeterminate" progress meter that fills the entire bar.
progress-bar