Sfoglia il codice sorgente

unbreak cond why not

Khaleel Al-Adhami 4 mesi fa
parent
commit
84d3a2bb97
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  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)