@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
24 lines • 621 B
TypeScript
import React from 'react';
interface ChartLegendItem<T> {
label: string;
marker: React.ReactNode;
datum: T;
}
export interface ChartLegendProps<T> {
series: ReadonlyArray<ChartLegendItem<T>>;
highlightedSeries: T | null;
legendTitle?: string;
ariaLabel?: string;
plotContainerRef?: React.RefObject<HTMLDivElement>;
onHighlightChange: (series: T | null) => void;
}
declare const _default: typeof ChartLegend;
export default _default;
declare function ChartLegend<T>({
series,
onHighlightChange,
highlightedSeries,
legendTitle,
ariaLabel,
plotContainerRef
}: ChartLegendProps<T>): JSX.Element;