summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card/card.component.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/pybind/mgr/dashboard/frontend/src/app/shared/components/card/card.component.ts28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card/card.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card/card.component.ts
new file mode 100644
index 000000000..03d403f40
--- /dev/null
+++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/card/card.component.ts
@@ -0,0 +1,28 @@
+import { Component, Input } from '@angular/core';
+import { Icons } from '~/app/shared/enum/icons.enum';
+
+@Component({
+ selector: 'cd-card',
+ templateUrl: './card.component.html',
+ styleUrls: ['./card.component.scss']
+})
+export class CardComponent {
+ icons = Icons;
+
+ @Input()
+ cardTitle: string;
+ @Input()
+ cardType: string = '';
+ @Input()
+ removeBorder = false;
+ @Input()
+ shadow = false;
+ @Input()
+ cardFooter = false;
+ @Input()
+ fullHeight = false;
+ @Input()
+ alignItemsCenter = false;
+ @Input()
+ justifyContentCenter = false;
+}