gov-gui
Version:
Gov UI Component Library Typscript Build
68 lines (67 loc) • 2.19 kB
JavaScript
import { h } from "@stencil/core";
export class GovContainer {
constructor() {
this.fluid = false; // For full-width container
}
render() {
const sizeClass = this.size ? `container-${this.size}` : '';
const className = this.fluid ? 'container-fluid' : `container ${sizeClass}`;
return h("div", { key: '852a7a0e1763e21c2865cea3ac4fcf31f4d68c62', class: className }, h("slot", { key: 'e25421a5ed82f87e03996704ce58f9b81ddaf3de' }));
}
static get is() { return "gov-container"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() {
return {
"$": ["gov-container.css"]
};
}
static get styleUrls() {
return {
"$": ["gov-container.css"]
};
}
static get properties() {
return {
"fluid": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": ""
},
"getter": false,
"setter": false,
"attribute": "fluid",
"reflect": false,
"defaultValue": "false"
},
"size": {
"type": "string",
"mutable": false,
"complexType": {
"original": "'sm' | 'md' | 'lg' | 'xl' | 'xxl'",
"resolved": "\"lg\" | \"md\" | \"sm\" | \"xl\" | \"xxl\"",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": ""
},
"getter": false,
"setter": false,
"attribute": "size",
"reflect": false
}
};
}
}
//# sourceMappingURL=gov-container.js.map