@mui/x-charts
Version:
The community edition of MUI X Charts components.
26 lines • 981 B
text/typescript
import type { ChartsLegendProps } from "./ChartsLegend.mjs";
import { type ContinuousColorLegendProps } from "./ContinuousColorLegend.mjs";
import { type ChartsLegendPosition } from "./legend.types.mjs";
import { type PiecewiseColorLegendProps } from "./PiecewiseColorLegend.mjs";
export interface ChartsLegendSlots {
/**
* Custom rendering of the legend.
* @default ChartsLegend
*/
legend?: React.JSXElementConstructor<ChartsLegendProps> | React.JSXElementConstructor<ContinuousColorLegendProps> | React.JSXElementConstructor<PiecewiseColorLegendProps>;
}
export interface ChartsLegendSlotProps {
legend?: Partial<ChartsLegendProps | ContinuousColorLegendProps | PiecewiseColorLegendProps> & ChartsLegendPosition;
}
export interface ChartsLegendSlotExtension {
/**
* Overridable component slots.
* @default {}
*/
slots?: ChartsLegendSlots;
/**
* The props used for each component slot.
* @default {}
*/
slotProps?: ChartsLegendSlotProps;
}