coreui-angular-ex
Version:
CoreUI Components Library for Angular
30 lines (23 loc) • 630 B
text/typescript
import { Component, HostBinding, Input } from '@angular/core';
import { Colors } from '../coreui.types';
({
selector: 'c-callout, [cCallout]',
template: `<ng-content></ng-content>`,
styleUrls: ['./callout.component.scss'],
standalone: true
})
export class CalloutComponent {
/**
* Sets the color context of the component to one of CoreUI’s themed colors.
* @type Colors
*/
() color?: Colors;
('class')
get hostClasses(): any {
return {
callout: true,
[`callout-${this.color}`]: !!this.color
};
}
constructor() { }
}