UNPKG

kompendium

Version:

Documentation generator for Stencil components

15 lines (14 loc) 423 B
import { h } from "@stencil/core"; export function SlotList({ slots, id, }) { if (!slots.length) { return; } return [ h("h3", { class: "docs-layout-section-heading", id: id }, "Slots"), ...slots.map(renderSlot), ]; } function renderSlot(slot) { return (h("div", null, h("h4", null, slot.name), h("kompendium-markdown", { text: slot.docs }))); } //# sourceMappingURL=slots.js.map