diff --git a/reflex/components/recharts/general.py b/reflex/components/recharts/general.py index 9a5c276b6..4b8c527d3 100644 --- a/reflex/components/recharts/general.py +++ b/reflex/components/recharts/general.py @@ -250,10 +250,10 @@ class Cell(Recharts): alias = "RechartsCell" # The presentation attribute of a rectangle in bar or a sector in pie. - fill: Var[str] + fill: Var[str | Color] # The presentation attribute of a rectangle in bar or a sector in pie. - stroke: Var[str] + stroke: Var[str | Color] responsive_container = ResponsiveContainer.create diff --git a/reflex/components/recharts/general.pyi b/reflex/components/recharts/general.pyi index eae08a5cc..9c63d6de9 100644 --- a/reflex/components/recharts/general.pyi +++ b/reflex/components/recharts/general.pyi @@ -488,8 +488,8 @@ class Cell(Recharts): def create( # type: ignore cls, *children, - fill: Optional[Union[Var[str], str]] = None, - stroke: Optional[Union[Var[str], str]] = None, + fill: Optional[Union[Color, Var[Union[Color, str]], str]] = None, + stroke: Optional[Union[Color, Var[Union[Color, str]], str]] = None, style: Optional[Style] = None, key: Optional[Any] = None, id: Optional[Any] = None,