mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 07:13:32 +00:00
add progress component, template, and stories (#4437)
This commit is contained in:
19
libs/components/src/progress/progress.component.html
Normal file
19
libs/components/src/progress/progress.component.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<div [ngClass]="outerBarStyles">
|
||||
<div
|
||||
[ngClass]="innerBarStyles"
|
||||
role="progressbar"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
attr.aria-valuenow="{{ barWidth }}"
|
||||
[ngStyle]="{ width: barWidth + '%' }"
|
||||
>
|
||||
<div
|
||||
*ngIf="displayText"
|
||||
class="tw-flex tw-h-full tw-flex-wrap tw-items-center tw-overflow-hidden"
|
||||
>
|
||||
<!-- If text is too long to fit, wrap it below to hide -->
|
||||
<div class="tw-h-full"> </div>
|
||||
<div class="tw-pr-1">{{ textContent }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user