UNPKG

react-plot

Version:

Library of React components to render SVG 2D plots.

19 lines 609 B
import type { CSSFuncProps, Position } from '../types.js'; export type LegendPosition = Position | 'embedded'; export type LegendProps = { position?: LegendPosition; margin?: number; onClick?: (args: { event: React.MouseEvent<SVGGElement>; id: string; }) => void; labelStyle?: CSSFuncProps<{ id: string; }>; lineStyle?: CSSFuncProps<{ id: string; }>; showHide?: boolean; } & Partial<Record<Position, number>>; export declare function Legend(options: LegendProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=Legend.d.ts.map