@lobehub/charts
Version:
React modern charts components built on recharts
15 lines (14 loc) • 524 B
TypeScript
/// <reference types="react" />
import { FlexboxProps } from 'react-layout-kit';
export interface LegendProps extends FlexboxProps {
activeLegend?: string;
categories: string[];
colors?: string[];
customCategories?: {
[key: string]: string;
};
enableLegendSlider?: boolean;
onClickLegendItem?: (category: string, color: string) => void;
}
declare const Legend: import("react").ForwardRefExoticComponent<LegendProps & import("react").RefAttributes<HTMLDivElement>>;
export default Legend;