Files
wgenerator/src/app/widget-modules/components/button/button.component.ts
2025-01-05 10:29:29 +01:00

16 lines
519 B
TypeScript

import {Component, Input} from '@angular/core';
import {IconProp} from '@fortawesome/fontawesome-svg-core';
import {MatButton} from '@angular/material/button';
import {NgIf} from '@angular/common';
import {FaIconComponent} from '@fortawesome/angular-fontawesome';
@Component({
selector: 'app-button',
templateUrl: './button.component.html',
styleUrls: ['./button.component.less'],
imports: [MatButton, NgIf, FaIconComponent],
})
export class ButtonComponent {
@Input() public icon: IconProp | null = null;
}