@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
24 lines • 1.17 kB
TypeScript
import React from 'react';
import { DefaultProps } from '../../theme';
import { LoaderProps } from '../Loader/Loader';
export interface LoadingOverlayProps extends DefaultProps, React.ComponentPropsWithoutRef<'div'> {
/** Provide custom loader */
loader?: React.ReactNode;
/** Loader component props */
loaderProps?: LoaderProps;
/** Sets overlay opacity */
overlayOpacity?: number;
/** Sets overlay color, defaults to theme.white in light theme and to theme.colors.dark[5] in dark theme */
overlayColor?: string;
/** Loading overlay z-index */
zIndex?: number;
/** If visible overlay will take 100% width and height of first parent with relative position and overlay all of its content */
visible: boolean;
/** Appear and disappear animation duration */
transitionDuration?: number;
}
export declare function LoadingOverlay({ className, visible, loaderProps, overlayOpacity, overlayColor, themeOverride, transitionDuration, zIndex, style, loader, ...others }: LoadingOverlayProps): JSX.Element;
export declare namespace LoadingOverlay {
var displayName: string;
}
//# sourceMappingURL=LoadingOverlay.d.ts.map