UNPKG

coreui-angular-ex

Version:

CoreUI Components Library for Angular

32 lines (28 loc) 694 B
import { Component, HostBinding, Input } from '@angular/core'; import { Positions } from '../coreui.types'; @Component({ selector: 'c-footer, [cFooter]', template: `<ng-content></ng-content>`, standalone: true }) export class FooterComponent { /** * Place footer in non-static positions. [docs] * @type Positions */ @Input() position?: Positions; /** * Default role for footer. [docs] * @type string * @default 'footer' */ @Input() @HostBinding('attr.role') role = 'footer'; @HostBinding('class') get getClasses(): any { return { footer: true, [`footer-${this.position}`]: !!this.position, }; } }