Files
ETB/ETB-FrontEnd/node_modules/@mui/x-charts/context/useChartApiContext.d.ts
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

10 lines
518 B
TypeScript

import * as React from 'react';
import { ChartApi } from "./ChartApi.js";
/**
* The `useChartApiContext` hook provides access to the chart API.
* This is only available when the chart is rendered within a chart or a `ChartDataProvider` component.
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
* @example
* const apiRef = useChartApiContext<ChartApi<'bar'>>();
*/
export declare function useChartApiContext<Api extends ChartApi>(): React.RefObject<Api>;