This is the button that we want to call in another component
<ng-container *ngIf="type === buttonType.Black">
<button class="man-btn-black">{{buttonText}}</button>
</ng-container>
@Input() buttonText?: string; @Input() type?: ButtonType;
export const Black = Template.bind({});
Black.args = {
type: ButtonType.Black,
buttonText: 'Regisztráció'
};
Here we call the button component
<man-buttons [type]="buttonType.Black" [buttonText]="buttonText"></man-buttons>
@Input() buttonText?: string;
export const Default = Template.bind({});
Default.args = {
buttonText: 'Bejelentkezés'
}