UNPKG

@mui/x-charts

Version:

The community edition of the Charts components (MUI X).

41 lines (40 loc) 1.15 kB
import * as React from 'react'; import { ChartsLegendClasses } from './chartsLegendClasses'; import { LegendRendererProps } from './DefaultChartsLegend'; import { LegendPlacement } from './legend.types'; export interface ChartsLegendSlots { /** * Custom rendering of the legend. * @default DefaultChartsLegend */ legend?: React.JSXElementConstructor<LegendRendererProps>; } export interface ChartsLegendSlotProps { legend?: Partial<LegendRendererProps>; } export interface ChartsLegendProps extends LegendPlacement { /** * Override or extend the styles applied to the component. */ classes?: Partial<ChartsLegendClasses>; /** * Set to true to hide the legend. * @default false */ hidden?: boolean; /** * Overridable component slots. * @default {} */ slots?: ChartsLegendSlots; /** * The props used for each component slot. * @default {} */ slotProps?: ChartsLegendSlotProps; } declare function ChartsLegend(inProps: ChartsLegendProps): React.JSX.Element; declare namespace ChartsLegend { var propTypes: any; } export { ChartsLegend };