UNPKG

@stories-js/core

Version:

Stories web components to build stories

27 lines (23 loc) 764 B
/*! * (C) StoriesJS https://storiesjs.org - GPL-2.0 License */ import { r as registerInstance, h, c as Host, g as getElement } from './index-49238f69.js'; const tabCss = ":host(.tab-hidden){display:none !important}"; const Tab = class { constructor(hostRef) { registerInstance(this, hostRef); /** @internal */ this.active = false; } render() { const { tab, active } = this; return (h(Host, { "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: { 'stories-page': true, 'tab-hidden': !active }, role: "tabpanel" }, h("slot", null))); } get el() { return getElement(this); } }; Tab.style = tabCss; export { Tab as stories_tab }; //# sourceMappingURL=stories-tab.entry.js.map