1
0
Khaleel Al-Adhami 3 сар өмнө
parent
commit
84d3a2bb97

+ 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)