Pass in the progress attribute as an integer (or a string if you're feeling lucky... it'll convert the number to an integer regardless)
= ui.nfg :progress, progress: 25
= ui.nfg :progress, progress: 25, class: 'my-4'
= ui.nfg :progress, progress: 50, class: 'my-4'
= ui.nfg :progress, progress: 75, class: 'my-4'
= ui.nfg :progress, progress: 90, class: 'my-4'
= ui.nfg :progress, progress: 100, class: 'my-4', describe: 'Tested data describe', tooltip: 'Tested tooltip'
<div class="progress my-4">
<div class="progress-bar" style="width: 25%;" role="progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress my-4">
<div class="progress-bar" style="width: 50%;" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress my-4">
<div class="progress-bar" style="width: 75%;" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress my-4">
<div class="progress-bar" style="width: 90%;" role="progressbar" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="progress my-4" data-describe="Tested data describe" data-toggle="tooltip" data-placement="top" data-html="true" title="Tested tooltip">
<div class="progress-bar" style="width: 100%;" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
</div>
Labels can be applied in 2 flavors when using the singular :progress component. (infinitely flexible if using the :progress > :progress_bar component setup.)
= ui.nfg :progress, progress: 25, label: true
= ui.nfg :progress, label: 'My label'
= ui.nfg :progress, class: 'my-4' do
= ui.nfg :progress_bar, progress: 90 do
Custom block label
leaving the :height option out will use the default heigh value from CSS
Avert your eyes...
Note: Animation only "works" when striped is enabled. For thematic purposes, the css class will be added to the component even if striped is not enabled.