Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```