import { elementDefine } from '../index';
import { SwcHTMLSlotElementBase } from '../elements/base/SwcHTMLSlotElementBase';

@elementDefine({ name: 'swc-when-slot', extends: 'slot' })
export class SwcWhenSlot extends SwcHTMLSlotElementBase {
  connectedCallback() { if (this.style.display !== 'contents') { this.style.display = 'none'; } }
}
