flexacore-ui-dev
Version:
Universal UI Framework for CDN, React, Angular, Vue, Svelte with TypeScript support
26 lines (24 loc) • 605 B
text/typescript
import { Component, Input } from '@angular/core';
export class FCSkeletonComponent {
variant: 'text' | 'circular' | 'rectangular' = 'text';
width: string = '100%';
height: string = '1rem';
animated: boolean = true;
get classes() {
return [
'fc-skeleton',
`fc-skeleton-${this.variant}`,
this.animated ? 'fc-skeleton-animated' : ''
];
}
}