UNPKG

@progress/kendo-react-charts

Version:

React Chart renders a wide range of high-quality data visualizations. KendoReact Charts package

30 lines (29 loc) 1.51 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { Tooltip } from '../common/property-types.js'; import { SharedTooltipContext, TooltipContext } from './../tooltip/Context.js'; import * as React from 'react'; /** * Represents the props of the KendoReact ChartTooltip component ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/tooltips)). */ export interface ChartTooltipProps extends Tooltip { /** * A function that can be used to create a custom tooltip template. * * When the `shared` property is set to `true`, the function accepts a `SharedTooltipContext` object as an argument. * Otherwise, it accepts a `TooltipContext` object. * * The function should return a React element that represents the custom tooltip content. */ render?: ((props: TooltipContext) => React.ReactNode) | ((props: SharedTooltipContext) => React.ReactNode); } /** * Represents the KendoReact ChartTooltip component ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/tooltips)). */ declare const ChartTooltip: React.FunctionComponent<ChartTooltipProps>; export { ChartTooltip };