coreui-angular-ex
Version:
CoreUI Components Library for Angular
30 lines (27 loc) • 717 B
text/typescript
import { Component, HostBinding, Input } from '@angular/core';
export class NavComponent {
/**
* Specify a layout type for component.
* @type {'fill' | 'justified'}
*/
layout?: 'fill' | 'justified';
/**
* Set the nav variant to tabs or pills.
* @type {'tabs' | 'pills' | 'underline'}
*/
variant?: '' | 'tabs' | 'pills' ;
get hostClasses(): any {
return {
nav: true,
[`nav-${this.layout}`]: !!this.layout,
[`nav-${this.variant}`]: !!this.variant
};
}
}