25 lines
769 B
TypeScript
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 = '';
|
|
}
|