aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular/buttons/button.component.html.ts
blob: 33a630a5bbf54868a223c7a594f48e2150714af7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export const template = `
<button class="sdc-button sdc-button__{{ type }} btn-{{ size }} {{ iconPositionClass }}"
        [disabled] = "disabled || show_spinner"
        [attr.data-tests-id]="testId">
        <svg-icon
                *ngIf="icon_name"
                [name]="icon_name"
                [mode]="type"
                [size]="'medium'"
                >
        </svg-icon>
        {{ text }}
</button>
<svg-icon *ngIf="show_spinner" name="spinner" [size]="'medium'" class="sdc-button__spinner" [ngClass]="{left: spinner_position === placement.right}"></svg-icon>
`;