UNPKG

@claromentis/design-system

Version:

Claromentis Design System Component Library

44 lines (43 loc) 986 B
import { h } from '@stencil/core'; export class ClaLabel { constructor() { this.hidden = false; } render() { return (h("span", { class: `${this.hidden ? "visually-hidden" : ""}` }, h("slot", null))); } static get is() { return "cla-label"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["cla-label.scss"] }; } static get styleUrls() { return { "$": ["cla-label.css"] }; } static get properties() { return { "hidden": { "type": "boolean", "mutable": false, "complexType": { "original": "boolean", "resolved": "boolean", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "If 'true', the label is hidden" }, "attribute": "hidden", "reflect": false, "defaultValue": "false" } }; } }