ark-progress
v0.0.1
Published
simple library to progress
Downloads
26
Maintainers
Readme
ProgressCorner - tiny reusable library to show a corner progress indicator.
Usage: const pc = new ProgressCorner({ corner: 'top-right', title: 'Uploading', autoHide: false }); pc.show(); // show widget pc.setMessage("Uploading 1/3 files"); pc.setProgress(45); // 0..100 pc.setIndeterminate(true); // show moving indicator pc.hide(); // hide widget
Options: corner: 'top-right'|'top-left'|'bottom-right'|'bottom-left' (default: 'top-right') title: string (default: 'Working') autoHide: boolean (hide when progress reaches 100) default true initialProgress: number (0..100) accentColor: CSS color (optional) -> sets --pc-accent variable on the element
