UNPKG

@scania/tegel

Version:
68 lines (67 loc) 2.37 kB
import { h } from "@stencil/core"; export class TdsSpinner { constructor() { /** Size of the Spinner */ this.size = 'lg'; /** Variant of the Spinner */ this.variant = 'standard'; } render() { return (h("div", { key: '6b8e0e3672d59119b4c81a514c2ce3c7aec0bdce', "aria-live": "assertive", role: "status", "aria-label": "loading" }, h("svg", { key: 'f311853629ac196027dbc6a7d4ae8df0df19a1ff', class: `tds-spinner-svg tds-spinner-svg-${this.size}`, "aria-hidden": "true" }, h("circle", { key: '0c78f2bb689a72bb5ae7c1e0329fb943d517d352', 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" }, "getter": false, "setter": false, "reflect": false, "attribute": "size", "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" }, "getter": false, "setter": false, "reflect": false, "attribute": "variant", "defaultValue": "'standard'" } }; } }