Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bre97-web/spinner-lit
A lit web component for everywhere, like vue, react and angular.
https://github.com/bre97-web/spinner-lit
html-css-js lit-html-element loading spinner spinner-components web-component
Last synced: 17 days ago
JSON representation
A lit web component for everywhere, like vue, react and angular.
- Host: GitHub
- URL: https://github.com/bre97-web/spinner-lit
- Owner: bre97-web
- Created: 2023-08-11T08:40:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-12T10:10:03.000Z (over 1 year ago)
- Last Synced: 2024-10-16T19:18:18.251Z (2 months ago)
- Topics: html-css-js, lit-html-element, loading, spinner, spinner-components, web-component
- Language: TypeScript
- Homepage: https://bre97-web.github.io/spinner-lit/
- Size: 142 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spinner-lit
A simple spinner web component.
*beta now.*![](./docs/imgs/intro.png)
## Usage
### Import module
- JavaScript
- TypeScript (**Recommmand**)
```js
// JavaScript
import 'spinner-lit/circle-spinner/circle-spinner.js'
``````ts
// TypeScript
import 'spinner-lit/circle-spinner/circle-spinner'
```### In HTML
```html```
## Dev
### Build
Modify the ts file of the code, Start building the project```
npm run build
```**If the compilation of your css files is skipped**, please allow the following directives
```
npm run css
``````
npm run ts
```### Run in browser
Run the code for this project, or use Vite.```
npm run test
``````
npm run dev
```