33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import * as React from 'react';
|
|
import { PopperProps } from '@mui/material/Popper';
|
|
import { TriggerOptions } from "./utils.js";
|
|
import { ChartsTooltipClasses } from "./chartsTooltipClasses.js";
|
|
export interface ChartsTooltipContainerProps<T extends TriggerOptions = TriggerOptions> extends Partial<PopperProps> {
|
|
/**
|
|
* Select the kind of tooltip to display
|
|
* - 'item': Shows data about the item below the mouse;
|
|
* - 'axis': Shows values associated with the hovered x value;
|
|
* - 'none': Does not display tooltip.
|
|
* @default 'axis'
|
|
*/
|
|
trigger?: T;
|
|
/**
|
|
* Override or extend the styles applied to the component.
|
|
*/
|
|
classes?: Partial<ChartsTooltipClasses>;
|
|
children?: React.ReactNode;
|
|
}
|
|
/**
|
|
* Demos:
|
|
*
|
|
* - [ChartsTooltip](https://mui.com/x/react-charts/tooltip/)
|
|
*
|
|
* API:
|
|
*
|
|
* - [ChartsTooltip API](https://mui.com/x/api/charts/charts-tool-tip/)
|
|
*/
|
|
declare function ChartsTooltipContainer(inProps: ChartsTooltipContainerProps): React.JSX.Element | null;
|
|
declare namespace ChartsTooltipContainer {
|
|
var propTypes: any;
|
|
}
|
|
export { ChartsTooltipContainer }; |