import { Component, h, Host, State } from '@stencil/core'; @Component({ tag: 'slot-conditional-rendering', shadow: false, scoped: true, }) export class SlotConditionalRendering { @State() headerVisible = true; @State() contentVisible = true; render() { return ( {this.headerVisible ? : null} {this.contentVisible ? : null} ); } }