feat: action btn

This commit is contained in:
2026-02-07 23:17:53 -03:00
parent 9b62766c66
commit 010646da8a
4 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
<div class="action-btn">
<button matButton="outlined" [disabled]="disabled()">{{text()}}</button>
</div>

View File

@@ -0,0 +1,12 @@
:host {
pointer-events: none;
}
.action-btn {
padding: 24px 0;
width: 100%;
button {
width: 100%;
pointer-events: all;
}
}

View File

@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ActionBtn } from './action-btn';
describe('ActionBtn', () => {
let component: ActionBtn;
let fixture: ComponentFixture<ActionBtn>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [ActionBtn]
})
.compileComponents();
fixture = TestBed.createComponent(ActionBtn);
component = fixture.componentInstance;
await fixture.whenStable();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -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<boolean>(true);
text = input('');
}