UNPKG

@mui/x-charts

Version:

The community edition of the charts components (MUI X).

32 lines (31 loc) 1.18 kB
import * as React from 'react'; import { SxProps, Theme } from '@mui/material/styles'; import { ItemInteractionData } from '../context/InteractionProvider'; import { ChartSeriesDefaultized, ChartSeriesType } from '../models/seriesType/config'; import { ChartsTooltipClasses } from './chartsTooltipClasses'; export type ChartsItemContentProps<T extends ChartSeriesType = ChartSeriesType> = { /** * The data used to identify the triggered item. */ itemData: ItemInteractionData<T>; /** * The series linked to the triggered axis. */ series: ChartSeriesDefaultized<T>; /** * Override or extend the styles applied to the component. */ classes: ChartsTooltipClasses; sx?: SxProps<Theme>; }; declare function ChartsItemTooltipContent<T extends ChartSeriesType>(props: { itemData: ItemInteractionData<T>; content?: React.ElementType<ChartsItemContentProps<T>>; contentProps?: Partial<ChartsItemContentProps<T>>; sx?: SxProps<Theme>; classes: ChartsItemContentProps<T>['classes']; }): React.JSX.Element; declare namespace ChartsItemTooltipContent { var propTypes: any; } export { ChartsItemTooltipContent };