import type { WithDataAttributes } from '@mui/utils/types'; import type { ChartsLegendProps } from "./ChartsLegend.js"; import type { ContinuousColorLegendProps } from "./ContinuousColorLegend.js"; import type { ChartsLegendPosition } from "./legend.types.js"; import type { PiecewiseColorLegendProps } from "./PiecewiseColorLegend.js"; import type { LegendPropsOverrides } from "../models/chartsSlotsComponentsProps.js"; export interface ChartsLegendSlots { /** * Custom rendering of the legend. * @default ChartsLegend */ legend?: React.JSXElementConstructor | React.JSXElementConstructor | React.JSXElementConstructor; } export interface ChartsLegendSlotProps { legend?: WithDataAttributes & ChartsLegendPosition & LegendPropsOverrides>; } export interface ChartsLegendSlotExtension { /** * Overridable component slots. * @default {} */ slots?: ChartsLegendSlots; /** * The props used for each component slot. * @default {} */ slotProps?: ChartsLegendSlotProps; }