Browse Source

fix default value for theme in ChakraProvider

Benedikt Bartscher 1 year ago
parent
commit
1abc57c68b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      reflex/components/chakra/base.py

+ 2 - 2
reflex/components/chakra/base.py

@@ -2,7 +2,7 @@
 from __future__ import annotations
 
 from functools import lru_cache
-from typing import List, Literal
+from typing import List, Literal, Optional
 
 from reflex.components.component import Component
 from reflex.utils import imports
@@ -55,7 +55,7 @@ class ChakraProvider(ChakraComponent):
 
     tag = "ChakraProvider"
 
-    theme: Var[str]
+    theme: Optional[Var[str]] = None
 
     @classmethod
     def create(cls) -> Component: