@a1um1/lightweight-charts-react-wrapper
Version:

12 lines (11 loc) • 628 B
TypeScript
import { type HTMLAttributes, type ForwardedRef, type ReactNode } from "react";
import type { ChartOptions, DeepPartial, IChartApi, MouseEventHandler, Time } from "lightweight-charts";
export interface ChartProps extends DeepPartial<ChartOptions> {
children?: ReactNode;
container?: HTMLAttributes<HTMLDivElement> & {
ref?: ForwardedRef<HTMLDivElement>;
};
onClick?: MouseEventHandler<Time>;
onCrosshairMove?: MouseEventHandler<Time>;
}
export declare const Chart: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ChartProps & import("react").RefAttributes<IChartApi>>>;