ng-implementation/my-workspace/projects/sae-lib/buttons/main-button/main-button.ts
2025-09-10 13:00:31 +02:00

25 lines
769 B
TypeScript

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 = '';
}