UNPKG

recharts

Version:
23 lines (22 loc) • 737 B
import { RechartsTheme } from './RechartsTheme'; /** * Applies the provided theme to all charts in the children tree. * * @see {@link https://recharts.github.io/en-US/guide/theming/ Theming guide} * * @since 3.11 * @public */ export declare const RechartsThemeProvider: import("react").Provider<RechartsTheme | undefined>; /** * Reads the currently active theme in the children tree. * Returns the theme as-is, without modifications and without defaults. * * Can return undefined if used outside of Recharts context, or if no theme is set. * * @see {@link https://recharts.github.io/en-US/guide/theming/ Theming guide} * * @since 3.11 * @public */ export declare const useRechartsTheme: () => RechartsTheme | undefined;