@kelvininc/ui-components
Version:
Kelvin UI Components
85 lines (84 loc) • 3.01 kB
JavaScript
import { h, Host } from "@stencil/core";
/**
* @part illustration - The illustration container.
*/
export class KvIllustration {
constructor() {
/** @inheritdoc */
this.customClass = '';
}
render() {
const Tag = this.name;
return (h(Host, { key: '47909f5918ae32f8b878b411e1832bd82b2099ca' }, h(Tag, { key: '16901b4c761f86ba8ce3bea806d097c6bfbaa588', customClass: this.customClass })));
}
static get is() { return "kv-illustration"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() {
return {
"$": ["illustration.scss"]
};
}
static get styleUrls() {
return {
"$": ["illustration.css"]
};
}
static get properties() {
return {
"name": {
"type": "string",
"attribute": "name",
"mutable": false,
"complexType": {
"original": "EIllustrationName",
"resolved": "EIllustrationName",
"references": {
"EIllustrationName": {
"location": "import",
"path": "./illustration.types",
"id": "src/components/illustration/illustration.types.ts::EIllustrationName"
}
}
},
"required": true,
"optional": false,
"docs": {
"tags": [],
"text": "(required) Illustration symbol name"
},
"getter": false,
"setter": false,
"reflect": true
},
"customClass": {
"type": "string",
"attribute": "custom-class",
"mutable": false,
"complexType": {
"original": "CustomCssClass",
"resolved": "CssClassMap | string | string[]",
"references": {
"CustomCssClass": {
"location": "import",
"path": "../../types",
"id": "src/types.ts::CustomCssClass"
}
}
},
"required": false,
"optional": true,
"docs": {
"tags": [{
"name": "inheritdoc",
"text": undefined
}],
"text": "(optional) Additional classes to apply for custom CSS. If multiple classes are\nprovided they should be separated by spaces. It is also valid to provide\nCssClassMap with boolean logic."
},
"getter": false,
"setter": false,
"reflect": true,
"defaultValue": "''"
}
};
}
}