@scania/tegel
Version:
Tegel Design System
62 lines (61 loc) • 2.17 kB
JavaScript
import { h } from "@stencil/core";
export class TdsSpinner {
constructor() {
this.size = 'lg';
this.variant = 'standard';
}
render() {
return (h("div", { key: 'de6aa9263fc0e7189002156e7e0f24b58a615149', "aria-live": "assertive", role: "status", "aria-label": "loading" }, h("svg", { key: '40d43902392034b39f7497369ade14caf6259385', class: `tds-spinner-svg tds-spinner-svg-${this.size}`, "aria-hidden": "true" }, h("circle", { key: 'ef94a92d9b0fe8cbf468a6dbce51ab19de071e43', class: `tds-spinner-circle tds-spinner-circle-${this.variant}` }))));
}
static get is() { return "tds-spinner"; }
static get originalStyleUrls() {
return {
"$": ["spinner.scss"]
};
}
static get styleUrls() {
return {
"$": ["spinner.css"]
};
}
static get properties() {
return {
"size": {
"type": "string",
"mutable": false,
"complexType": {
"original": "'xs' | 'sm' | 'md' | 'lg'",
"resolved": "\"lg\" | \"md\" | \"sm\" | \"xs\"",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Size of the Spinner"
},
"attribute": "size",
"reflect": false,
"defaultValue": "'lg'"
},
"variant": {
"type": "string",
"mutable": false,
"complexType": {
"original": "'standard' | 'inverted'",
"resolved": "\"inverted\" | \"standard\"",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Variant of the Spinner"
},
"attribute": "variant",
"reflect": false,
"defaultValue": "'standard'"
}
};
}
}