@actinc/dls
Version:
Design Language System (DLS) for ACT & Encoura front-end projects.
28 lines • 1.07 kB
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 { BarProps, LabelListProps } from 'recharts';
import { BarChartProps } from "../BarChart";
import { DataProps } from "../BarChart/types";
import { ILabelListData } from "../../types";
export interface StackedBarChartProps {
barChartProps?: Omit<BarChartProps, 'data'>;
barKeys?: Array<Array<string>>;
barProps?: BarProps;
children?: React.ReactElement<unknown>;
colors?: string[];
customizeBarText?: (index: number) => React.CSSProperties;
data: Array<DataProps>;
labelListProps?: LabelListProps<ILabelListData>;
setTooltipBarId?: (value: string | undefined) => void;
subLabelProps?: LabelListProps<ILabelListData>;
subLabels?: Array<string>;
tooltipBarId?: string;
}
export declare const StackedBarChart: React.FC<StackedBarChartProps>;
export default StackedBarChart;
//# sourceMappingURL=index.d.ts.map