@mui/x-data-grid-premium
Version:
The Premium plan edition of the MUI X Data Grid Components.
33 lines • 1.18 kB
text/typescript
import * as React from 'react';
import type { RenderProp } from '@mui/x-data-grid-pro/internals';
import { type GridSlotProps } from '@mui/x-data-grid-pro';
export interface ChartsPanelState {
/**
* If `true`, the charts integration panel is open.
*/
open: boolean;
}
export type ChartsPanelTriggerProps = Omit<GridSlotProps['baseButton'], 'className'> & {
/**
* A function to customize rendering of the component.
*/
render?: RenderProp<GridSlotProps['baseButton'], ChartsPanelState>;
/**
* A function to customize rendering of the component.
*/
className?: string | ((state: ChartsPanelState) => string);
};
/**
* A button that opens and closes the charts integration panel.
* It renders the `baseButton` slot.
*
* Demos:
*
* - [Charts Panel](https://mui.com/x/react-data-grid/components/charts-panel/)
*
* API:
*
* - [ChartsPanelTrigger API](https://mui.com/x/api/data-grid/charts-panel-trigger/)
*/
declare const ChartsPanelTrigger: React.ForwardRefExoticComponent<ChartsPanelTriggerProps> | React.ForwardRefExoticComponent<Omit<ChartsPanelTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
export { ChartsPanelTrigger };