feat: add default spinner

This commit is contained in:
Polianin Nikita 2024-02-17 07:46:07 +03:00
parent 967f5572fa
commit 58371f0200
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1 @@
<mat-progress-spinner [color]="color" mode="indeterminate" [diameter]="scale" />

View File

@ -0,0 +1,18 @@
import {Component, Input} from '@angular/core';
import {MatProgressSpinner} from "@angular/material/progress-spinner";
import {NgStyle} from "@angular/common";
@Component({
selector: 'app-data-spinner',
standalone: true,
imports: [
MatProgressSpinner,
NgStyle
],
templateUrl: './data-spinner.component.html',
styleUrl: './data-spinner.component.css'
})
export class DataSpinnerComponent {
@Input() color: string = "accent";
@Input() scale: number = 50;
}