1.0.0 • Published 4 years ago

basic-loader v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Built With Stencil

Loader Component

This is built on stenciljs.

Stencil is a compiler for building fast web apps using Web Components.

Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.

Stencil components are just Web Components, so they work in any major framework or with no framework at all.

It can be used in Angular/Vue/React by installing the package.

Getting Started

Older tag is been deprecated.

Steps to use the basic-loader in your project.

Step 1: npm i basic-loader Step 2: For Angular project

import { defineCustomElements } from 'basic-loader'; in main.ts file; 
modify the file by adding defineCustomElements which has been imported.

platformBrowserDynamic().bootstrapModule(AppModule)
  .catch(err => console.error(err));
defineCustomElements();

Step 3: Use the below tag to display loader.

<basic-loader></basic-loader>

For React/Vue, please go through the below link.

https://stenciljs.com/docs/react

https://stenciljs.com/docs/vue

Next Release

  1. Dynamic background color for loader.
  2. Dynamic color for loader.
1.0.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago