import { LitElement, html, customElement, property } from "lit-element"; // @ts-ignore import TabsStyle from "@patternfly/patternfly/components/Tabs/tabs.css"; // @ts-ignore import GlobalsStyle from "@patternfly/patternfly/base/patternfly-globals.css"; import { CURRENT_CLASS } from "../constants"; @customElement("pb-tabs") export class Tabs extends LitElement { @property() currentPage?: string; static get styles() { return [GlobalsStyle, TabsStyle]; } render() { const pages = Array.from(this.querySelectorAll("[slot]")!); if (!this.currentPage) { if (pages.length < 1) { return html`

no tabs defined

`; } this.currentPage = pages[0].attributes.getNamedItem("slot")?.value; } return html`
`; } }