UNPKG

@a1um1/lightweight-charts-react-wrapper

Version:

![bundle-size](https://badgen.net/bundlephobia/minzip/lightweight-charts-react-wrapper/)

12 lines (11 loc) 628 B
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>>>;