UNPKG

kompendium

Version:

Documentation generator for Stencil components

54 lines (53 loc) 1.74 kB
import { h } from "@stencil/core"; export class Proplist { render() { return h("dl", { key: 'e0d431f2ef5b105af7436d0a9b46a3ad2886a96b' }, this.items.map(this.renderProperty)); } renderProperty(property) { const { key, value } = property; return [ h("dt", null, key), h("dd", { class: `value--${value}` }, h("kompendium-markdown", { text: `\`${value}\`` })), ]; } static get is() { return "kompendium-proplist"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["proplist.scss"] }; } static get styleUrls() { return { "$": ["proplist.css"] }; } static get properties() { return { "items": { "type": "unknown", "mutable": false, "complexType": { "original": "ProplistItem[]", "resolved": "ProplistItem[]", "references": { "ProplistItem": { "location": "local", "path": "/home/runner/work/kompendium/kompendium/src/components/proplist/proplist.tsx", "id": "src/components/proplist/proplist.tsx::ProplistItem" } } }, "required": false, "optional": false, "docs": { "tags": [], "text": "List of properties" }, "getter": false, "setter": false } }; } } //# sourceMappingURL=proplist.js.map