import { Component, Input } from '@angular/core';
export type AlertTone = 'info' | 'pos' | 'warn' | 'neg';
@Component({
selector: 'vsp-alert',
template: `
@if (title) {
{{ title }}
}
`,
})
export class VspAlert {
@Input() tone: AlertTone = 'info';
@Input() title?: string;
get cls(): string {
return `ui-alert ${this.tone}`;
}
}