mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
559 B
TypeScript
20 lines
559 B
TypeScript
import * as React from 'react';
|
|
import WixComponent, { WixComponentProps } from './BaseComponents';
|
|
|
|
export interface LoaderProps extends WixComponentProps {
|
|
size?: LoaderSize;
|
|
color?: LoaderColor;
|
|
text?: React.ReactNode;
|
|
status?: LoaderStatus;
|
|
statusMessage?: string;
|
|
shouldLoadAsync?: boolean;
|
|
}
|
|
|
|
export default class Loader extends WixComponent<LoaderProps> {}
|
|
|
|
export type LoaderSize = 'tiny' | 'small' | 'medium' | 'large';
|
|
|
|
export type LoaderColor = 'blue' | 'white';
|
|
|
|
export type LoaderStatus = 'loading' | 'success' | 'error';
|