feat(button): add disabled state input to stateful button component

This commit is contained in:
Lorenz Hilpert
2025-07-21 08:39:33 +02:00
parent 76ff54dd3a
commit 594acaa5f5
2 changed files with 2 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
(click)="handleButtonClick()"
data-what="stateful-button"
[attr.data-which]="state()"
[disabled]="disabled()"
>
@switch (state()) {
@case ('default') {

View File

@@ -81,6 +81,7 @@ export class StatefulButtonComponent implements OnDestroy {
color = input<ButtonColor>('primary');
size = input<ButtonSize>('medium');
pending = input<boolean>(false);
disabled = input<boolean>(false);
// Output events
clicked = output<void>();