vim-webgl-component
Version:
A demonstration app built on top of the vim-webgl-viewer
27 lines (26 loc) • 876 B
TypeScript
/**
* @module viw-webgl-component
*/
export type ProgressMode = '%' | 'bytes';
/**
* Interface for message information displayed in the LoadingBox.
* @property message - Optional main message text.
* @property info - Optional additional information or tooltip text.
* @property progress - The progress of an operation.
*/
export type LoadingBoxProps = {
message?: string;
progress?: number;
mode?: ProgressMode;
};
export type LoadingBoxPropsTyped = LoadingBoxProps & {
type: 'loading';
};
/**
* LoadingBox component that displays a loading message or other messages.
* @param props - Component props containing optional content.
* @returns The LoadingBox component or null if no content is provided.
*/
export declare function LoadingBox(props: {
content: LoadingBoxProps;
}): import("react/jsx-runtime").JSX.Element;