Browse Source

unbreak cond why not

Khaleel Al-Adhami 4 tháng trước cách đây
mục cha
commit
84d3a2bb97
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      reflex/components/core/cond.py

+ 6 - 0
reflex/components/core/cond.py

@@ -90,3 +90,9 @@ def color_mode_cond(light: Any, dark: Any = None) -> Var | Component:
         light,
         dark,
     )
+
+
+class Cond:
+    """Create a conditional component or Prop."""
+
+    create = staticmethod(cond)