|
@@ -38,6 +38,9 @@ class Switch(ChakraComponent):
|
|
# The placeholder text.
|
|
# The placeholder text.
|
|
placeholder: Var[str]
|
|
placeholder: Var[str]
|
|
|
|
|
|
|
|
+ # The color scheme of the switch (e.g. "blue", "green", "red", etc.)
|
|
|
|
+ color_scheme: Var[str]
|
|
|
|
+
|
|
@classmethod
|
|
@classmethod
|
|
def get_controlled_triggers(cls) -> Dict[str, Var]:
|
|
def get_controlled_triggers(cls) -> Dict[str, Var]:
|
|
"""Get the event triggers that pass the component's value to the handler.
|
|
"""Get the event triggers that pass the component's value to the handler.
|