Просмотр исходного кода

Add button spinner_placement prop (#1871)

Elijah Ahianyo 1 год назад
Родитель
Сommit
4e82102ad0
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      reflex/components/forms/button.py

+ 5 - 0
reflex/components/forms/button.py

@@ -40,6 +40,11 @@ class Button(ChakraComponent):
     # | "purple" | "pink" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram"
     # | "purple" | "pink" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram"
     color_scheme: Var[str]
     color_scheme: Var[str]
 
 
+    # Position of the loading spinner.
+    # Options:
+    # "start" | "end"
+    spinner_placement: Var[str]
+
     # The type of button.
     # The type of button.
     type_: Var[str]
     type_: Var[str]