This commit is contained in:
Tizian.Breuch
2025-09-08 19:27:46 +02:00
parent ee8974e2ff
commit c65aef11ca
66 changed files with 1691 additions and 108 deletions

View File

@@ -1,11 +1,22 @@
import { Component } from '@angular/core';
import { Component, Input } from '@angular/core';
import { CommonModule } from '@angular/common';
// Definiert die erlaubten Varianten für den Button
type ButtonColor = 'primary' | 'secondary' | 'stroked' | 'flat' | 'icon' | 'icon-danger';
@Component({
selector: 'app-button',
imports: [],
imports: [CommonModule],
templateUrl: './button.component.html',
styleUrl: './button.component.css'
})
export class ButtonComponent {
@Input() color: ButtonColor = 'primary';
@Input() type: 'button' | 'submit' = 'button';
@Input() disabled = false;
@Input() fullWidth = false;
}
// Ein spezieller Input für Tooltips
@Input() tooltip: string | null = null;
}