flexacore-ui-dev
Version:
Universal UI Framework for CDN, React, Angular, Vue, Svelte with TypeScript support
18 lines (16 loc) • 583 B
text/typescript
import { Component, Input, Output, EventEmitter } from '@angular/core';
export class FCButtonComponent {
variant: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' = 'primary';
type: string = 'button';
onClick = new EventEmitter<Event>();
get classes() {
return [
'fc-btn',
`fc-btn-${this.variant}`
];
}
}