useRechartsTheme

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.

Available since Recharts 3.11

Return value

RechartsTheme | undefined