Ver Fonte

minor IconButton default value fix

Benedikt Bartscher há 1 ano atrás
pai
commit
32bc17b757
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      reflex/components/chakra/forms/iconbutton.py

+ 1 - 1
reflex/components/chakra/forms/iconbutton.py

@@ -19,7 +19,7 @@ class IconButton(Text):
     aria_label: Optional[Var[str]] = None
     aria_label: Optional[Var[str]] = None
 
 
     # The icon to be used in the button.
     # The icon to be used in the button.
-    icon: Optional[Component]
+    icon: Optional[Component] = None
 
 
     # If true, the button will be styled in its active state.
     # If true, the button will be styled in its active state.
     is_active: Optional[Var[bool]] = None
     is_active: Optional[Var[bool]] = None