@actinc/dls
Version:
Design Language System (DLS) for ACT & Encoura front-end projects.
20 lines • 761 B
TypeScript
/**
* 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 { LabelProps } from 'recharts';
import { ScatterPlotData } from "../../../types";
export type CustomizedLabelProps = LabelProps & {
isBlockingOnHovers?: boolean;
selectedPoint?: ScatterPlotData;
shouldHideLabel?: Record<string, boolean>;
};
export declare function calculateLabelWidth(label: string): number;
export declare const Y_LABEL_MARGIN = 30;
export declare const MIN_LABEL_WIDTH = 40;
export declare const CustomizedLabel: React.FC<CustomizedLabelProps>;
export default CustomizedLabel;
//# sourceMappingURL=index.d.ts.map