Coder Social home page Coder Social logo

juanmarquezruiz / ng-spinners Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joshk2/ng-spinners

0.0 0.0 0.0 2.22 MB

Amazing collection of Angular spinners components with pure css.

Home Page: https://bit.dev/joshk/ng-spinners

License: MIT License

JavaScript 4.09% TypeScript 40.32% CSS 33.25% HTML 22.34%

ng-spinners's Introduction

Angular Spinners CSS Loaders (Vue, React)

bit components npm version GitHub stars code style: prettier GitHub license Twitter Follow

Amazing collection of Angular spinners components with pure css.
The Angular spinners are based on loading.io and from all over the web.

  • πŸ’…No extra CSS imports
  • βœ‚οΈZero dependencies
  • πŸ“¦Spinners can be installing separately

Browse components and explore their props with Bit.
Install specific angular spinner component with npm, yarn or bit without having to install the whole project.
Install components and live demo

πŸš€ List of Spinners - Input and Default Property

Each component accepts a color prop, and few accepts also size prop.
The default color prop is #7f58af.
Component that accepts size prop have a default size in pixel.

Spinner color: string size: number
<circle-loader></circle-loader> #7f58af 64
<default-loader></default-loader> #7f58af -
<dualring-loader></dualring-loader> #7f58af -
<ellipsis-loader></ellipsis-loader> #7f58af -
<facebook-loader></facebook-loader> #7f58af -
<grid-loader></grid-loader> #7f58af -
<heart-loader></heart-loader> #7f58af -
<hourglass-loader></hourglass-loader> #7f58af -
<ring-loader></ring-loader> #7f58af 80
<ripple-loader></ripple-loader> #7f58af -
<roller-loader></roller-loader> #7f58af -
<spinner-loader></spinner-loader> #7f58af -
<orbitals-loader></orbitals-loader> #7f58af -

πŸ“¦ Installation

Using npm to install ng-spinners

npm i --save ng-spinners

Play and install spinners for Angular with Bit

Install specific Angular spinner component/module with bit, npm or yarn without having to install the whole project Using bit to play with live demo, and try the spinners before install.

set npm regisetry config(one time action):

npm config set '@bit:registry' https://node.bit.dev

and use your favorite package manager:

npm i @bit/joshk.ng-spinners.facebook-loader
yarn add @bit/joshk.ng-spinners.facebook-loader
bit import joshk.ng-spinners/facebook-loader 

πŸ’» Usage Examples

module file example:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
//using npm or yarn
import { FacebookLoaderModule } from 'ng-spinners';
//using bit
import { FacebookLoaderModule } from '@bit/joshk.ng-spinners.facebook-loader';

@NgModule({
	declarations: [
		AppComponent,
	],
	imports: [
		BrowserModule,
		FacebookLoaderModule
	],
	providers: [],
	bootstrap: [AppComponent]
})
export class AppModule { }

component html file example:

<facebook-loader color="black"></facebook-loader>
<facebook-loader color="#de3541"></facebook-loader>
<facebook-loader></facebook-loader>

Complete example of this component can be found here.

πŸ‘Ύ Development

You can see the components locally by cloning this repo and doing the following steps:

  • Install dependencies from package.json, run: npm install.
  • Run the app in the development mode, run: npm run start.

πŸ™Œ Contributing

  • Pull requests and ⭐ stars are always welcome.
  • For bugs and feature requests, please create an issue.

πŸ‘πŸ» Support my open-source

If you like to support my open-source contributions please star and share this project. πŸ’«

πŸ“„ License

MIT

ng-spinners's People

Contributors

joshk2 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.