@utrecht/web-component-library-stencil
Version:
Stencil component library bundle for the Municipality of Utrecht based on the NL Design System architecture
54 lines (53 loc) • 1.64 kB
JavaScript
/**
* @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 ButtonGroup {
constructor() {
this.direction = undefined;
}
render() {
const { direction } = this;
return (h("div", { key: 'fc776927bb834f6cac1e5c743d2360f1a08513ff', class: clsx('utrecht-button-group', {
'utrecht-button-group--column': direction === 'column',
'utrecht-button-group--row': direction === 'row',
}) }, h("slot", { key: 'e8b0574988548ec62b311f961f318613a541133c' })));
}
static get is() { return "utrecht-button-group"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() {
return {
"$": ["button-group.scss"]
};
}
static get styleUrls() {
return {
"$": ["button-group.css"]
};
}
static get properties() {
return {
"direction": {
"type": "string",
"mutable": false,
"complexType": {
"original": "string | 'column' | 'row'",
"resolved": "string",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": ""
},
"attribute": "direction",
"reflect": false
}
};
}
}
//# sourceMappingURL=button-group.js.map