From 8a4701143ea29afa7d9523bf992f48790875c3ec Mon Sep 17 00:00:00 2001 From: Carlos <36110765+carlosabadia@users.noreply.github.com> Date: Wed, 6 Nov 2024 18:49:09 +0100 Subject: [PATCH] add toast classname prop (#4310) --- reflex/components/sonner/toast.py | 3 +++ reflex/components/sonner/toast.pyi | 1 + 2 files changed, 4 insertions(+) diff --git a/reflex/components/sonner/toast.py b/reflex/components/sonner/toast.py index c226c7bd0..c7db55a40 100644 --- a/reflex/components/sonner/toast.py +++ b/reflex/components/sonner/toast.py @@ -114,6 +114,9 @@ class ToastProps(PropsBase, NoExtrasAllowedProps): # Custom style for the toast. style: Optional[Style] + # Class name for the toast. + class_name: Optional[str] + # XXX: These still do not seem to work # Custom style for the toast primary button. action_button_styles: Optional[Style] diff --git a/reflex/components/sonner/toast.pyi b/reflex/components/sonner/toast.pyi index b2ef3fc55..aa6a5b780 100644 --- a/reflex/components/sonner/toast.pyi +++ b/reflex/components/sonner/toast.pyi @@ -45,6 +45,7 @@ class ToastProps(PropsBase, NoExtrasAllowedProps): id: Optional[Union[str, Var]] unstyled: Optional[bool] style: Optional[Style] + class_name: Optional[str] action_button_styles: Optional[Style] cancel_button_styles: Optional[Style] on_dismiss: Optional[Any]