UNPKG

@actinc/dls

Version:

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

29 lines 971 B
/** * 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 * as React from 'react'; import { LegendProps } from 'recharts'; import { CustomLegendComponentType } from '../types'; export interface PayloadProps { color: string | undefined; payload: { value: number; }; value: string; } export interface PieLegendProps extends Partial<LegendProps> { chartHeight?: number; chartLegendTextFontSize?: number | string; chartLegendTextFontSizeSmall?: number | string; chartWidth?: number; CustomLegendIcon?: CustomLegendComponentType; formatValue?: (value: number, totalValue: number) => React.ReactElement | string | null; pieTotalValue: number; showAsSquare?: boolean; } export declare const PieLegend: React.FC<PieLegendProps>; export default PieLegend; //# sourceMappingURL=index.d.ts.map