feat: add default spinner
This commit is contained in:
parent
967f5572fa
commit
58371f0200
1
src/components/data-spinner/data-spinner.component.html
Normal file
1
src/components/data-spinner/data-spinner.component.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<mat-progress-spinner [color]="color" mode="indeterminate" [diameter]="scale" />
|
18
src/components/data-spinner/data-spinner.component.ts
Normal file
18
src/components/data-spinner/data-spinner.component.ts
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user