add props to main button

This commit is contained in:
Tykayn 2025-09-10 13:00:31 +02:00 committed by tykayn
parent 359367c4e3
commit 72e35b5582
26 changed files with 233 additions and 69 deletions

View file

@ -0,0 +1,25 @@
import {Component, Input} from '@angular/core';
import {NgClass} from '@angular/common';
export type ButtonKindType = '' | 'primary' | 'secondary' | 'ghost' | 'link';
export type ButtonSizeType = '' | 'large' | 'medium' | 'small' | 'extrasm';
export type inconPositionKindType = '' | 'left' | 'right';
@Component({
selector: 'sae-main-button',
standalone: true,
imports: [
NgClass
],
templateUrl: './main-button.html',
styleUrl: './main-button.scss'
})
export class MainButton {
@Input() disabled: boolean = false;
@Input() divider: boolean = false;
@Input() label: string = '';
@Input() icon: string = '';
@Input() inconPosition: inconPositionKindType = 'left';
@Input() size: ButtonSizeType = '';
@Input() kind: ButtonKindType = '';
}