feat: host toasts and alerts in the shell

This commit is contained in:
2026-11-10 18:33:56 +07:00
parent a6b6cfd5a4
commit 67f34ead74
7 changed files with 182 additions and 60 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ input = ["button"]
clipboard = ["button"]
popover = []
scroll_area = ["scrollbar"]
scrollbar = []
scrollbar = ["scroll_area"]
segmented = []
separator = []
spinner = []
+1
View File
@@ -338,6 +338,7 @@ impl RenderOnce for AlertsView {
div()
.relative()
.w_full()
.debug_selector(|| "alert-entry".to_string())
.child(entry.alert.clone())
.with_animation(
("alert-enter", id),
+1
View File
@@ -283,6 +283,7 @@ impl ToastEntry {
div()
.id(("toast", id))
.debug_selector(|| "toast-pill".to_string())
.role(Role::Alert)
.aria_label(toast.message.clone())
.max_w(TOAST_MAX_WIDTH)