0.1.0-alpha.3 • Published 3 years ago

@uxland/ui-progress-indicator v0.1.0-alpha.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

UXL Progress Indicator Component npm version

IMPORTANT: The Uxland UI Web Components are a work in progress and subject to major changes until 1.0 release.

Installation

npm i @uxland/ui-progress-indicator

NOTE: The Uxland UI Web Components are distributed by Uxland Company and are free to use Modules, and use the Custom Elements API. They are compatible with all modern browsers including Chrome, Firefox, Safari, Edge, and IE11.

Usage

Default Spinner

<uxl-progress-indicator></uxl-progress-indicator>

npm.io

Spinner with text

<uxl-progress-indicator .text="Im Busy!"></uxl-progress-indicator>

npm.io

Bouncing progress

<uxl-progress-indicator .type="bouncing"></uxl-progress-indicator>

npm.io

Linear progress

<uxl-progress-indicator .type="linear"></uxl-progress-indicator>

npm.io

API

Properties/Attributes

NameTypeDefaultDescription
typestring'spinner'The type of progress indicator. Can be circular, linear or bouncing
textstring''Label to display under circular progress.

Methods

None

Events

None

CSS Custom Properties

NameDefaultDescription
--progress-color#009688Color for spinner and bouncing.
--spinner-stroke3pxSpinner stroke.
--spinner-width30pxSpinner width.
--spinner-height30pxSpinner height.
--spinner-background-colortransparentSpinner container background color.
--title-colorrgba(0, 0, 0, 0.87)Spinner title color.
--title-font-size1remSpinner title font-size.
--title-font-weightlightSpinner title font-weigth.
--bouncing-ball-width10pxWidth of bouncing ball.
--bouncing-ball-height10pxheigth of bouncing ball.
--linear-width100%Width of linear progress.
--linear-color0, 150, 136RGB color of linear progress. Don't pass tgb function, only 3 args.