Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/changhuixu/spinner

Angular components for spinners
https://github.com/changhuixu/spinner

angular loader loading loading-bar loading-spinner spinner spinner-components

Last synced: 17 days ago
JSON representation

Angular components for spinners

Awesome Lists containing this project

README

        

# @uiowa/spinner

[![Build Status](https://img.shields.io/travis/changhuixu/spinner/master.svg?label=Travis%20CI&style=flat-square)](https://app.travis-ci.com/changhuixu/spinner.svg?branch=main)
[![npm](https://img.shields.io/npm/v/@uiowa/spinner.svg?style=flat-square)](https://www.npmjs.com/package/@uiowa/spinner)

CHANGELOG

- **v13** Angular 13+
- **v12** Angular 12+
- **v10** Angular 10+
- **v6** Angular 6+

## [DEMO](https://spinner-1f3e5.firebaseapp.com/)

[StackBlitz](https://stackblitz.com/github/changhuixu/spinner)

This library only contains three components and doesn't have third party dependencies.

## Components

- `action-spinner`

Rotating circles. Used for action promise or waiting for page rendering.
Allow to set spinner size. By default, size is 1rem.

- `loading-bar`

Beeping blocks. Used for server side data loading.
Allow to set spinner size. By default, size is 1rem.

- `uiowa-ring`

Rotating spinner with Golden and Black colors. Used as loading indicator.
Allow to set spinner size. By default, size is 4rem.

- `loading-placeholder`

Carousel style one stripe spinner in a white background with box shadow.
Allow to fit the parent container.

## Usage

```html







Loading...

Loading...



Validating ...


Title

// default size = 4rem




```

```typescript
@NgModule({
declarations: [...],
imports: [..., SpinnerModule], // import SpinnerModule
providers: []
})
export class AppModule {}
```