import { Component, input, TemplateRef, viewChild } from '@angular/core';

@Component({
  selector: '<% if (prefix) { %><%= prefix %>-<% } %>tab',
  template: `
    <ng-template #content>
      <ng-content />
    </ng-template>
  `,
})
export class Tab<%= componentSuffix %> {
  /**
   * The value of the tab.
   */
  readonly value = input<string>();

  /**
   * The label of the tab.
   */
  readonly label = input<string>();

  /**
   * The content of the tab.
   */
  readonly content = viewChild.required<TemplateRef<void>>('content');
}
