1.0.3 • Published 4 years ago

ng-skeleton v1.0.3

Weekly downloads
25
License
-
Repository
github
Last release
4 years ago

alt text

Stackblitz Example

https://stackblitz.com/edit/ng-skeleton-demo

Overview

Install

npm install ng-skeleton --save

Usage

Add NgSkeletonModule to your module's imports

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app/app.component';

import { NgSkeletonModule } from 'ng-skeleton';

@NgModule({
  imports: [BrowserModule, NgSkeletonModule],
  declarations: [AppComponent],
  bootstrap: [AppComponent]
})

And then use it in your component

import { Component } from '@angular/core';

@Component({
  selector: 'example-app',
  template: `<ng-skeleton></ng-skeleton>`
})
export class AppComponent {
}

Options

skelCircle

PropertyTypeRequired
skelCirclebooleanOptionalDisplays the component as a circle

skelWidth

PropertyTypeRequired
skelWidthnumberOptionalDefines the width in px (default: 100%)

skelHeight

PropertyTypeRequired
skelHeightnumberOptionalDefines the width in px (default: 20px)

skelSpeed

PropertyTypeRequired
skelSpeednumberOptionalDefines the animation speed (default: 1000ms)

skelBackground

PropertyTypeRequired
skelBackgroundstringOptionalDefines a custom background color

skelBackground

PropertyTypeRequired
skelBackgroundstringOptionalDefines a custom background color (Overrides skelDark/skelLight background color)

skelDark

PropertyTypeRequired
skelDarkbooleanOptionalTurns the skeleton into dark mode

skelLight

PropertyTypeRequired
skelLightbooleanOptionalTurns the skeleton into light mode

skelText

PropertyTypeRequired
skelTextstringOptionalPass a text into the skeleton

Donation

If this project help you reduce time to develop, you can donate me a cup of hot chocolate (:

Buy Me A Coffee

License

MIT © Benjamin Raffetseder

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1

4 years ago