Socket
Socket
Sign inDemoInstall

ng-skeleton

Package Overview
Dependencies
5
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ng-skeleton

![alt text](https://api.benjamin-raffetseder.com/storage/uploads/2020/10/07/5f7d63fac6831ngskeleton.gif "Ng-Skeleton Preview") Ng-Skeleton


Version published
Weekly downloads
48
increased by33.33%
Maintainers
1
Install size
116 kB
Created
Weekly downloads
 

Readme

Source

alt text

Ng-Skeleton

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
[skelCircle]booleanOptionalDisplays the component as a circle
[skelWidth]
PropertyTypeRequired
[skelWidth]numberOptionalDefines the width in px (default: 100%)
[skelHeight]
PropertyTypeRequired
[skelHeight]numberOptionalDefines the width in px (default: 20px)
[skelSpeed]
PropertyTypeRequired
[skelSpeed]numberOptionalDefines the animation speed (default: 1000ms)
[skelBackground]
PropertyTypeRequired
[skelBackground]stringOptionalDefines a custom background color
[skelBackground]
PropertyTypeRequired
[skelBackground]stringOptionalDefines a custom background color (Overrides skelDark/skelLight background color)
[skelDark]
PropertyTypeRequired
[skelDark]booleanOptionalTurns the skeleton into dark mode
[skelLight]
PropertyTypeRequired
[skelLight]booleanOptionalTurns the skeleton into light mode
[skelText]
PropertyTypeRequired
[skelText]stringOptionalPass 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

Keywords

FAQs

Last updated on 12 Oct 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc