0.1.4 • Published 2 years ago

@swingerman/background-progress v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

npm Donate

Background Progress Directive

A simple directive for Angular 12+ that renders a linear gradient background on the element simulating a simple progress bar.

The idea was to use it on inputs but can be used for other elements as well.

Install

npm i @swingerman/background-progress

Use

<form awmBackgroundProgress [fillPercent]="percent"></form>

Properties

NameDescription
@Input() backgroundColor: stringSets the background color of the element
@Input() foregroundColor: stringSets the progress color
@input() fillPercentGap: numberSets the blur size at the edge of the progress color
@input() fillPercent: numberSets the actual percent