UNPKG

@mui/x-data-grid

Version:

The Community plan edition of the MUI X Data Grid components.

12 lines 672 B
import * as React from 'react'; import { GridApiCommunity } from "../../../models/api/gridApiCommunity.js"; import { DataGridProcessedProps } from "../../../models/props/DataGridProps.js"; import type { GridOverlayType, GridLoadingOverlayVariant } from "./gridOverlaysInterfaces.js"; /** * Uses the grid state to determine which overlay to display. * Returns the active overlay type and the active loading overlay variant. */ export declare const useGridOverlays: (apiRef: React.RefObject<GridApiCommunity>, props: Pick<DataGridProcessedProps, "slotProps">) => { overlayType: NonNullable<GridOverlayType>; loadingOverlayVariant: GridLoadingOverlayVariant | null; };