Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seanwuapps/stencil-loading-spinner
Loading spinner component created using stencil
https://github.com/seanwuapps/stencil-loading-spinner
loading-spinner stenciljs web-component
Last synced: about 1 month ago
JSON representation
Loading spinner component created using stencil
- Host: GitHub
- URL: https://github.com/seanwuapps/stencil-loading-spinner
- Owner: seanwuapps
- License: mit
- Archived: true
- Created: 2017-09-20T06:24:16.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-09T00:04:53.000Z (over 6 years ago)
- Last Synced: 2024-08-01T13:16:47.464Z (4 months ago)
- Topics: loading-spinner, stenciljs, web-component
- Language: CSS
- Size: 181 KB
- Stars: 20
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-stenciljs - Loading Spinner
README
# Stencil Loading Spinner Component
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. In many cases, Stencil can be used as a drop in replacement for traditional frontend frameworks given the capabilities now available in the browser, though using it as such is certainly not required.
Stencil also enables a number of key capabilities on top of Web Components, in particular Server Side Rendering (SSR) without the need to run a headless browser, pre-rendering, and objects-as-properties (instead of just strings).
## Get started
Clone this repo and cd into the folder, then run the following commands
```bash
npm install
npm start
```To view the build, start an HTTP server inside of the `/www` directory.
To watch for file changes during develop, run:
```bash
npm run dev
```To build the app for production, run:
```bash
npm run build
```## Usage
Preview
![Preview](https://media.giphy.com/media/26vIg1eDTCsCWYFGM/giphy.gif)
```html
```