浏览代码

unbreak cond why not

Khaleel Al-Adhami 3 月之前
父节点
当前提交
84d3a2bb97
共有 1 个文件被更改,包括 6 次插入0 次删除
  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)