@geneui/components
Version:
The Gene UI components library designed for BI tools
33 lines (32 loc) • 840 B
TypeScript
import { FC, ReactNode } from 'react';
import './BusyLoader.scss';
interface IBusyLoaderProps {
/**
* Show loader
*/
isBusy?: boolean;
/**
* Any valid React node. Renders when "isBusy" is set to false
*/
children?: ReactNode;
/**
* Show provided text when loading, it will be ignored in the `type` of `bar`
*/
loadingText?: string;
/**
* Loader available type/style </br>
* Possible values: `spinner | bubbles | bar`
*/
type?: 'spinner' | 'bubbles' | 'bar';
/**
* Loader size </br>
* Possible values: `small | medium | big`
*/
spinnerSize?: 'small' | 'medium' | 'big';
/**
* Any custom class name
*/
className?: string;
}
declare const BusyLoader: FC<IBusyLoaderProps>;
export { IBusyLoaderProps, BusyLoader as default };