This commit is contained in:
Tizian.Breuch
2025-09-09 11:47:48 +02:00
parent c65aef11ca
commit 5601cd0110
16 changed files with 223 additions and 202 deletions

View File

@@ -1,13 +1,16 @@
import { Component, Input } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IconComponent } from '../icon/icon.component';
// Definiert die erlaubten Varianten für den Button
type ButtonColor = 'primary' | 'secondary' | 'stroked' | 'flat' | 'icon' | 'icon-danger';
@Component({
selector: 'app-button',
imports: [CommonModule],
standalone: true,
imports: [
CommonModule,
IconComponent
],
templateUrl: './button.component.html',
styleUrl: './button.component.css'
})
@@ -17,6 +20,8 @@ export class ButtonComponent {
@Input() disabled = false;
@Input() fullWidth = false;
// Ein spezieller Input für Tooltips
@Input() tooltip: string | null = null;
@Input() iconName: string | null = null;
// --- HIER IST DIE KORREKTUR: Umbenennung zu svgColor ---
@Input() svgColor: string | null = null; // Farbe des SVG-Inhalts im Button
}