@mui/x-charts
Version:
The community edition of MUI X Charts components.
32 lines • 1.19 kB
text/typescript
import { type SeriesId } from "../models/seriesType/common.mjs";
export interface BarClasses {
/** Styles applied to the bar plot element. */
root: string;
/** Styles applied to the group surrounding a series' bar elements. */
series: string;
/** Styles applied to the group surrounding a series' labels. */
seriesLabels: string;
/** Styles applied to an individual bar element. */
element: string;
/** Styles applied to an individual bar label. */
label: string;
/** Styles applied to a bar label when it is animated. */
labelAnimate: string;
}
export type BarClassKey = keyof BarClasses;
export interface BarElementOwnerState {
seriesId: SeriesId;
dataIndex: number;
color: string;
isFaded: boolean;
isHighlighted: boolean;
isFocused: boolean;
classes?: Partial<BarClasses>;
}
export declare function getBarUtilityClass(slot: string): string;
export declare const barClasses: BarClasses;
export interface UseUtilityClassesOptions {
skipAnimation?: boolean;
classes?: Partial<BarClasses>;
}
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"root" | "label" | "series" | "seriesLabels" | "element", string>;