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

https://github.com/ayodejii/blazor-spinner-css

Amazing collection of Blazor Server and Web Assembly spinners components with pure css.
https://github.com/ayodejii/blazor-spinner-css

blazor blazor-server blazor-webassembly component csharp css frontend-web loader loading

Last synced: 6 months ago
JSON representation

Amazing collection of Blazor Server and Web Assembly spinners components with pure css.

Awesome Lists containing this project

README

          

# React Spinners CSS Loaders ([React](https://github.com/JoshK2/react-spinners-css), [Vue](https://github.com/JoshK2/vue-spinners-css), [Angular](https://github.com/JoshK2/ng-spinners))

[![Nuget version](https://img.shields.io/nuget/v/blazor-css-spinner)](https://www.nuget.org/packages/blazor-css-spinner)
[![Nuget Downloads](https://img.shields.io/nuget/dt/blazor-css-spinner?color=orange)](https://www.nuget.org/packages/blazor-css-spinner)

![blazor_css_updated](https://github.com/ayodejii/blazor-spinner-css/assets/43586181/9c569226-8ffe-40d1-8684-f9bc2792f465)

> This library requires the .NET 7 SDK.

Amazing collection of Blazor spinners components with pure css.
The Blazor spinners are based on [loading.io](loading.io) and from all over the web.
If you want to add your own spinner, please follow the [contributing guidelines](CONTRIBUTING.md).

- ๐Ÿ’…No extra CSS imports
- โœ‚๏ธZero dependencies

## ๐Ÿš€ List of Spinners - Parameters and their types

The following components accept a `Color` parameter, and few also accept a `Size` parameter.
The default `Color` parameter is `#7f58af`.
Components that accept `Size` parameter have a default size in pixel.

| Spinner | Color: string | Size: int |
|----------------| ------------- | ------------ |
| `` | `#7f58af` | `64` |
| `` | `#7f58af` | `80` |
| `` | `#7f58af` | `80` |
| `` | `#7f58af` | `80` |
| `` | `#7f58af` | `80` |
| `` | `#7f58af` | `80` |
| `` | `#7f58af` | `80` |
| `` | `#7f58af` | `32` |
| `` | `#7f58af` | `80` |
| `` | `#7f58af` | `80` |
| `` | `#7f58af` | - |
| `` | `#7f58af` | - |
| `` | `#7f58af` | - |
| `` | `#7f58af` | - |
| `` | `#7f58af` | `80` |
| `` | `#7f58af` | `80` |

The following components accept three parameters, `PrimaryColor`, `SecondaryColor`, and a `Size` parameter.
The default `PrimaryColor` and `SecondaryColor` parameter values are `#7f58af` and `#88AF58` respectively.
Components that accept `Size` parameter have a default size in pixel.

| Spinner | PrimaryColor: string | SecondaryColor: string | Size: int |
|----------------|----------------------|------------------------|-----------|
| `` | `#7f58af` | `#FC94AF` | `80` |
| `` | `#7f58af` | `#FC94AF` | `80` |
| `` | `#7f58af` | `#FC94AF` | `80` |

Add the package to your application using dotnet cli

```
dotnet add package blazor-css-spinner --version 1.0.2
```
using dotnet CLI

## Usage Examples

```
@default color is #7f58af@

@size parameter is int in pixel@

@code
{
string GetRandomColor() => "red";
}
```