@mui/x-charts
Version:
The community edition of MUI X Charts components.
41 lines • 1.36 kB
text/typescript
import * as React from 'react';
import { type SxProps, type Theme } from '@mui/material/styles';
import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
export declare function useNoData(): boolean;
export type CommonOverlayProps = React.SVGAttributes<SVGTextElement> & {
sx?: SxProps<Theme>;
};
export interface ChartsOverlaySlots {
/**
* Overlay component rendered when the chart is in a loading state.
* @default ChartsLoadingOverlay
*/
loadingOverlay?: React.ElementType<CommonOverlayProps>;
/**
* Overlay component rendered when the chart has no data to display.
* @default ChartsNoDataOverlay
*/
noDataOverlay?: React.ElementType<CommonOverlayProps>;
}
export interface ChartsOverlaySlotProps {
loadingOverlay?: SlotComponentPropsFromProps<CommonOverlayProps, {}, {}>;
noDataOverlay?: SlotComponentPropsFromProps<CommonOverlayProps, {}, {}>;
}
export interface ChartsOverlayProps {
/**
* If `true`, a loading overlay is displayed.
* @default false
*/
loading?: boolean;
/**
* Overridable component slots.
* @default {}
*/
slots?: ChartsOverlaySlots;
/**
* The props used for each component slot.
* @default {}
*/
slotProps?: ChartsOverlaySlotProps;
}
export declare function ChartsOverlay(props: ChartsOverlayProps): import("react/jsx-runtime").JSX.Element | null;