@if (title()) {
  <div class="ui-tooltip-title">
    {{ title() }}
  </div>
}

@if (text() || template()) {
  <div class="ui-tooltip-content">
    @let t = template();
    @if (t) {
      <ng-container *ngTemplateOutlet="t"></ng-container>
    } @else {
      {{ text() }}
    }
  </div>
}
