diff --git a/src/app/components/action-btn/action-btn.html b/src/app/components/action-btn/action-btn.html new file mode 100644 index 0000000..709f7da --- /dev/null +++ b/src/app/components/action-btn/action-btn.html @@ -0,0 +1,3 @@ +
+ +
\ No newline at end of file diff --git a/src/app/components/action-btn/action-btn.scss b/src/app/components/action-btn/action-btn.scss new file mode 100644 index 0000000..dfe2404 --- /dev/null +++ b/src/app/components/action-btn/action-btn.scss @@ -0,0 +1,12 @@ +:host { + pointer-events: none; +} + +.action-btn { + padding: 24px 0; + width: 100%; + button { + width: 100%; + pointer-events: all; + } +} \ No newline at end of file diff --git a/src/app/components/action-btn/action-btn.spec.ts b/src/app/components/action-btn/action-btn.spec.ts new file mode 100644 index 0000000..9c148c4 --- /dev/null +++ b/src/app/components/action-btn/action-btn.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ActionBtn } from './action-btn'; + +describe('ActionBtn', () => { + let component: ActionBtn; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [ActionBtn] + }) + .compileComponents(); + + fixture = TestBed.createComponent(ActionBtn); + component = fixture.componentInstance; + await fixture.whenStable(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/action-btn/action-btn.ts b/src/app/components/action-btn/action-btn.ts new file mode 100644 index 0000000..694ff15 --- /dev/null +++ b/src/app/components/action-btn/action-btn.ts @@ -0,0 +1,13 @@ +import { Component, input } from '@angular/core'; +import { MatButton } from '@angular/material/button'; + +@Component({ + selector: 'app-action-btn', + imports: [MatButton], + templateUrl: './action-btn.html', + styleUrl: './action-btn.scss', +}) +export class ActionBtn { + disabled = input(true); + text = input(''); +}