diff --git a/reflex/components/core/cond.py b/reflex/components/core/cond.py index 62f4e92cd..7ba5f2fc0 100644 --- a/reflex/components/core/cond.py +++ b/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)