@freshworks/crayons
Version:
Crayons Web Components library
1 lines • 796 B
JavaScript
import{r as t,h as e,e as a,i}from"./p-c5706edf.js";let s=0,n=class{constructor(e){t(this,e),this.name="",this.active=!1}connectedCallback(){this.el.id||(this.el.id="fw-tab-panel-"+s++)}render(){return this.el.style.display=this.active?"block":"none",e(a,{role:"tabpanel","aria-hidden":this.active?"false":"true"},e("slot",null))}get el(){return i(this)}};n.style=':host{font-family:var(--fw-font-family, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Open Sans", "Helvetica Neue", sans-serif);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block;padding:0;width:var(--fw-tab-panel-width, "inherit");height:var(--fw-tab-panel-height, "inherit")}';export{n as fw_tab_panel}