UNPKG

@uiw/react-heat-map

Version:

React component create calendar heatmap to visualize time series data, a la github contribution graph.

14 lines (13 loc) 524 B
import React from 'react'; import { RectProps } from './Rect'; import { SVGProps } from './SVG'; export interface LegendProps extends RectProps { panelColors: SVGProps['panelColors']; rectSize: SVGProps['rectSize']; leftPad: number; legendCellSize: number; legendRender?: (props: RectProps) => React.ReactElement; topPad: number; space: number; } export default function Legend({ panelColors, leftPad, topPad, space, rectSize, legendCellSize, legendRender, ...props }: LegendProps): JSX.Element;