UNPKG

@blockscout/ui-toolkit

Version:

A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects

17 lines (16 loc) 743 B
import { default as React } from 'react'; import { ChartMargin } from '../types'; import { SankeyChartData } from './types'; export type SankeyLinkColorMode = 'source' | 'target'; export interface SankeyChartProps { data: SankeyChartData; margin?: ChartMargin; nodeWidth?: number; nodePadding?: number; linkOpacity?: number; linkHoverOpacity?: number; linkColorMode?: SankeyLinkColorMode; colors?: ReadonlyArray<string>; valueFormatter?: (value: number) => string; } export declare const SankeyChart: React.MemoExoticComponent<({ data, margin: marginProps, nodeWidth, nodePadding, linkOpacity, linkHoverOpacity, linkColorMode, colors: colorsProp, valueFormatter, }: SankeyChartProps) => React.JSX.Element>;