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"; export interface ChartsLegendSlots { /** * Custom rendering of the legend. * @default ChartsLegend */ legend?: React.JSXElementConstructor | React.JSXElementConstructor | React.JSXElementConstructor; } export interface ChartsLegendSlotProps { legend?: Partial & ChartsLegendPosition; } export interface ChartsLegendSlotExtension { /** * Overridable component slots. * @default {} */ slots?: ChartsLegendSlots; /** * The props used for each component slot. * @default {} */ slotProps?: ChartsLegendSlotProps; }