import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';
import { IconComponent } from '../icon/icon.component';
@Component({
selector: 'dui-tab',
template: `
@if (removable()) {
}
`,
host: {
'[class.active]': 'active()',
},
styleUrls: ['./tab.component.scss'],
changeDetection: ChangeDetectionStrategy.Eager,
imports: [IconComponent],
})
export class TabComponent {
active = input(false);
removable = input(true);
close = output();
protected onClose() {
this.close.emit();
}
}