xlibs-components
Version:
Modern React component library with Aceternity, MagicUI, and ShadCN components for building beautiful web applications
41 lines • 1.84 kB
TypeScript
import * as React from "react";
import { Bar, BarChart, Line, LineChart, Area, AreaChart, XAxis, YAxis, CartesianGrid, ResponsiveContainer, PieChart, Pie, Cell } from "recharts";
import type { LegendProps, TooltipProps } from "recharts";
export interface ChartConfig {
[key: string]: {
label: string;
color?: string;
};
}
interface ChartContainerProps {
config: ChartConfig;
children: React.ReactNode;
className?: string;
}
declare const ChartContainer: React.ForwardRefExoticComponent<ChartContainerProps & React.RefAttributes<HTMLDivElement>>;
interface ChartTooltipProps extends TooltipProps<any, any> {
config?: ChartConfig;
}
declare const ChartTooltip: React.ForwardRefExoticComponent<ChartTooltipProps & React.RefAttributes<HTMLDivElement>>;
interface ChartTooltipContentProps {
active?: boolean;
payload?: any[];
label?: string;
labelFormatter?: (value: any) => string;
indicator?: "dot" | "line" | "dashed";
hideLabel?: boolean;
nameKey?: string;
config?: ChartConfig;
}
declare const ChartTooltipContent: React.ForwardRefExoticComponent<ChartTooltipContentProps & React.RefAttributes<HTMLDivElement>>;
interface ChartLegendProps extends LegendProps {
config?: ChartConfig;
}
declare const ChartLegend: React.ForwardRefExoticComponent<ChartLegendProps & React.RefAttributes<HTMLDivElement>>;
interface ChartLegendContentProps {
payload?: any[];
config?: ChartConfig;
}
declare const ChartLegendContent: React.ForwardRefExoticComponent<ChartLegendContentProps & React.RefAttributes<HTMLDivElement>>;
export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, Bar, BarChart, Line, LineChart, Area, AreaChart, XAxis, YAxis, CartesianGrid, ResponsiveContainer, PieChart, Pie, Cell, };
//# sourceMappingURL=chart.d.ts.map