UNPKG

fybdp-d3-kg

Version:

Knowledge Graph using React and D3.js

25 lines (24 loc) 715 B
import { Component, ReactElement } from 'react'; import { DiscreteLegendEntryProps, DiscreteLegendEntry } from './DiscreteLegendEntry'; export interface DiscreteLegendProps { /** * CSS Class name. */ className?: any; /** * CSS Styles. */ style?: any; /** * Orientation of the legend. */ orientation?: 'horizontal' | 'vertical'; /** * Entry components to show in the legend. */ entries: ReactElement<DiscreteLegendEntryProps, typeof DiscreteLegendEntry>[]; } export declare class DiscreteLegend extends Component<DiscreteLegendProps> { static defaultProps: Partial<DiscreteLegendProps>; render(): JSX.Element; }