UNPKG

@scania/tegel

Version:
76 lines (75 loc) 2.54 kB
import { h, Host } from "@stencil/core"; /** * @slot <default> - <b>Unnamed slot.</b> For accordion items. */ export class TdsAccordion { constructor() { /** Set the variant of the Accordion. */ this.modeVariant = null; /** Removes the bottom border of the last Accordion item. */ this.hideLastBorder = false; } render() { return (h(Host, { key: '403d93cb3ca1cdb1d11d53eebd22207e330dd527', class: { 'tds-accordion': true, [`tds-mode-variant-${this.modeVariant || ''}`]: Boolean(this.modeVariant), 'hide-last-border': this.hideLastBorder, } }, h("slot", { key: '3e5e516531cf5a1d456b7cd1605a4ce4c57f397a' }))); } static get is() { return "tds-accordion"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["accordion.scss"] }; } static get styleUrls() { return { "$": ["accordion.css"] }; } static get properties() { return { "modeVariant": { "type": "string", "mutable": false, "complexType": { "original": "'primary' | 'secondary' | null", "resolved": "\"primary\" | \"secondary\" | null", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "Set the variant of the Accordion." }, "getter": false, "setter": false, "reflect": false, "attribute": "mode-variant", "defaultValue": "null" }, "hideLastBorder": { "type": "boolean", "mutable": false, "complexType": { "original": "boolean", "resolved": "boolean", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "Removes the bottom border of the last Accordion item." }, "getter": false, "setter": false, "reflect": false, "attribute": "hide-last-border", "defaultValue": "false" } }; } }