mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
22 lines
463 B
TypeScript
22 lines
463 B
TypeScript
import { attr, controller } from '@github/catalyst';
|
|
import { html } from 'core/utils';
|
|
import { BaseComponentElement } from 'common/';
|
|
|
|
@controller
|
|
class CircleLoaderElement extends BaseComponentElement {
|
|
@attr size: string;
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
elementConnected = (): void => {
|
|
this.update();
|
|
};
|
|
|
|
render = () => {
|
|
return html`<div class="circle-loader ${this.size ? `-${this.size}` : ''}"></div>`;
|
|
};
|
|
}
|
|
|
|
export type { CircleLoaderElement };
|