inno-progress-bar
- Preview
- Angular
- React
- Vue
light background
dark background
<div class="component-display">
<div class="light-bg">
<span class="bg-title">light background</span>
<inno-progress-bar></inno-progress-bar>
</div>
<div class="dark-bg">
<span class="bg-title">dark background</span>
<inno-progress-bar variant="dark"></inno-progress-bar>
</div>
</div>
<div class="component-display">
<div class="light-bg">
<span class="bg-title">light background</span>
<InnoProgressBar></InnoProgressBar>
</div>
<div class="dark-bg">
<span class="bg-title">dark background</span>
<InnoProgressBar variant="dark"></InnoProgressBar>
</div>
</div>
<div class="component-display">
<div class="light-bg">
<span class="bg-title">light background</span>
<InnoProgressBar></InnoProgressBar>
</div>
<div class="dark-bg">
<span class="bg-title">dark background</span>
<InnoProgressBar variant="dark"></InnoProgressBar>
</div>
</div>
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
percentagePrecision | percentage-precision | If the percentage number is shown, how many decimal places should be visible | number | 0 |
progressPercentage | progress-percentage | Progress in percentage. Must be a number between 0 and 100. | number | 0 |
progressText | progress-text | Text to display for the progress bar. | string | '' |
showPercentage | show-percentage | Show the percentage number on the progress bar. The value is rounded according to the 'percentagePrecision' and 'trailingZeroes' properties. | boolean | true |
trailingZeroes | trailing-zeroes | If 'percentagePrecision' is larger than 0, should we display the trailing zeroes. For example if the progress is 1.5% and the 'percentagePrecision' is 2 then the displayed text will be '1.50%' if trailing zeroes are enabled and '1.5%' if trailing zeroes are disabled. Uses the toFixed(..) function in the background. | boolean | false |
variant | variant | Color variant of the progress bar. | "dark" | "light" | 'light' |
Built with StencilJS