add props to main button
This commit is contained in:
parent
359367c4e3
commit
72e35b5582
26 changed files with 233 additions and 69 deletions
|
@ -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 = '';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue