UNPKG

react-sparklines-typescript

Version:

react-sparklines rewritten in typescript and modern react patterns

20 lines (19 loc) 538 B
import { FC, CSSProperties } from "react"; import { Point } from "./types"; export declare enum SparklinesReferenceLineTypes { max = "max", min = "min", mean = "mean", avg = "avg", median = "median", custom = "custom" } export interface SparklinesReferenceLineProps { margin?: number; points?: Point[]; type?: SparklinesReferenceLineTypes; value?: number; style?: CSSProperties; } declare const SparklinesReferenceLine: FC<SparklinesReferenceLineProps>; export default SparklinesReferenceLine;