aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular/buttons/button.component.html.ts
blob: f903fd187761b2acd1dbe4a6f17482619a183cac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export default `
<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]="iconMode"
                [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>
`;