reaviz
Version:
Data Visualization using React
23 lines (21 loc) • 632 B
TypeScript
import { default as React, FC, ReactElement } from 'react';
import { DiscreteLegendEntryProps, DiscreteLegendEntry } from './DiscreteLegendEntry';
export interface DiscreteLegendProps {
/**
* CSS Class name.
*/
className?: string;
/**
* CSS Styles.
*/
style?: React.CSSProperties;
/**
* Orientation of the legend.
*/
orientation?: 'horizontal' | 'vertical';
/**
* Entry components to show in the legend.
*/
entries: ReactElement<DiscreteLegendEntryProps, typeof DiscreteLegendEntry>[];
}
export declare const DiscreteLegend: FC<Partial<DiscreteLegendProps>>;