UNPKG

@utrecht/web-component-library-stencil

Version:

Stencil component library bundle for the Municipality of Utrecht based on the NL Design System architecture

51 lines (50 loc) 1.48 kB
/** * @license EUPL-1.2 * Copyright (c) 2020-2024 Frameless B.V. * Copyright (c) 2021-2024 Gemeente Utrecht */ import { h } from "@stencil/core"; import clsx from "clsx"; export class Backdrop { constructor() { this.viewport = undefined; } render() { const { viewport } = this; return (h("div", { key: 'd07d4784d5580dd3efa7657bf959999cd01c17b3', class: clsx('utrecht-backdrop', viewport && 'utrecht-backdrop--viewport') }, h("slot", { key: '8c0ce6f7e70c30bb6f0c4a865287cc5d96852f68' }))); } static get is() { return "utrecht-backdrop"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["backdrop.scss"] }; } static get styleUrls() { return { "$": ["backdrop.css"] }; } static get properties() { return { "viewport": { "type": "boolean", "mutable": false, "complexType": { "original": "boolean", "resolved": "boolean", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "" }, "attribute": "viewport", "reflect": false } }; } } //# sourceMappingURL=backdrop.js.map