UNPKG

@mui/x-charts

Version:

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

36 lines (35 loc) 1.24 kB
import * as React from 'react'; import { SpringValue } from '@react-spring/web'; export interface PieArcLabelClasses { /** Styles applied to the root element. */ root: string; /** Styles applied to the root element when higlighted. */ highlighted: string; /** Styles applied to the root element when faded. */ faded: string; } export type PieArcLabelClassKey = keyof PieArcLabelClasses; interface PieArcLabelOwnerState { id: string; color: string; isFaded: boolean; isHighlighted: boolean; classes?: Partial<PieArcLabelClasses>; } export declare function getPieArcLabelUtilityClass(slot: string): string; export declare const pieArcLabelClasses: PieArcLabelClasses; export type PieArcLabelProps = PieArcLabelOwnerState & React.ComponentPropsWithoutRef<'text'> & { startAngle: SpringValue<number>; endAngle: SpringValue<number>; innerRadius: SpringValue<number>; outerRadius: SpringValue<number>; cornerRadius: SpringValue<number>; paddingAngle: SpringValue<number>; } & { formattedArcLabel?: string | null; }; declare function PieArcLabel(props: PieArcLabelProps): React.JSX.Element; declare namespace PieArcLabel { var propTypes: any; } export { PieArcLabel };