Add color_scheme prop to pc.switch (#990)

This commit is contained in:
Unknown6334 2023-05-12 05:42:50 +05:30 committed by GitHub
parent d232a98898
commit 6c60295ba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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