UNPKG

@actinc/dls

Version:

Design Language System (DLS) for ACT & Encoura front-end projects.

24 lines 1.29 kB
/** * Copyright (c) ACT, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { TooltipProps } from 'recharts'; import { ValueType, NameType, Payload } from 'recharts/types/component/DefaultTooltipContent'; import { DataProps } from '../types'; export interface CustomToolTipProps extends TooltipProps<ValueType, NameType> { barId?: string; data?: DataProps[]; formatLabel?: (label: unknown, dataKey: unknown, payload?: Payload<ValueType, NameType>[], data?: DataProps[]) => React.ReactElement | string | null; formatValue?: (value: unknown, payload?: Payload<ValueType, NameType>[]) => unknown; formatValueLabel?: (label: unknown, dataKey: unknown, payload?: Payload<ValueType, NameType>[]) => React.ReactElement | string | null; renderAdditionalInfo?: (barId: string | undefined, payload: Payload<ValueType, NameType>[], data?: DataProps[], tooltipLabel?: unknown) => React.ReactElement | React.ReactElement[] | null; showValue?: boolean; tooltipColor?: string; valueLabel?: string; } export declare const CustomTooltip: React.FC<CustomToolTipProps>; export default CustomTooltip; //# sourceMappingURL=index.d.ts.map