UNPKG

@utrecht/web-component-library-stencil

Version:

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

52 lines (51 loc) 1.67 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 FormFieldDescription { constructor() { this.status = null; } render() { const { status } = this; return (h("div", { key: 'e062a67c985b1469c913801052e7c1561ebeb8d5', class: clsx('utrecht-form-field-description', status === 'valid' && 'utrecht-form-field-description--valid', status === 'invalid' && 'utrecht-form-field-description--invalid') }, h("slot", { key: '18b196a06f50b68a7eff779a96bcd075d803ea4a' }))); } static get is() { return "utrecht-form-field-description"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["form-field-description.scss"] }; } static get styleUrls() { return { "$": ["form-field-description.css"] }; } static get properties() { return { "status": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string", "references": {} }, "required": false, "optional": true, "docs": { "tags": [], "text": "" }, "attribute": "status", "reflect": true, "defaultValue": "null" } }; } } //# sourceMappingURL=form-field-description.js.map