UNPKG

@claromentis/design-system

Version:

Claromentis Design System Component Library

60 lines (59 loc) 1.28 kB
import { h } from '@stencil/core'; /** * @slot - Wrapper for nav items */ export class Nav { constructor() { this.inline = false; } /** * Get the map of CSS classes for the nav tabs. * * @return CssClassMap */ getClassMap() { const inline = this.inline; return { 'cla-nav': true, [`cla-nav-inline`]: inline, }; } render() { return (h("ul", { class: this.getClassMap() }, h("slot", null))); } static get is() { return "cla-nav"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["cla-nav.scss"] }; } static get styleUrls() { return { "$": ["cla-nav.css"] }; } static get properties() { return { "inline": { "type": "boolean", "mutable": false, "complexType": { "original": "boolean", "resolved": "boolean", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "Whether to display nav items vertically or horizontally." }, "attribute": "inline", "reflect": false, "defaultValue": "false" } }; } static get elementRef() { return "el"; } }