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