소스 검색

unbreak cond why not

Khaleel Al-Adhami 4 달 전
부모
커밋
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)