15 lines
418 B
TypeScript
15 lines
418 B
TypeScript
import { Component, Input } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'fab',
|
|
templateUrl: './fab.component.html',
|
|
})
|
|
export class FabComponent {
|
|
@Input('aria-label') ariaLabel = 'Floating Action Button';
|
|
@Input() icon = 'add';
|
|
@Input() color = 'primary';
|
|
@Input('tooltip') tooltip: string;
|
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
@Input() onClick: () => void = () => {};
|
|
}
|