flexacore-ui-dev
Version:
Universal UI Framework for CDN, React, Angular, Vue, Svelte with TypeScript support
24 lines (22 loc) • 604 B
text/typescript
import { Component, Input } from '@angular/core';
export class FCBadgeComponent {
variant: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' = 'primary';
size: 'sm' | 'md' | 'lg' = 'md';
pill: boolean = false;
get classes() {
return [
'fc-badge',
`fc-badge-${this.variant}`,
`fc-badge-${this.size}`,
this.pill ? 'fc-badge-pill' : ''
];
}
}