You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/demo/src/content/components/toast.mdx
+37-53Lines changed: 37 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,12 +11,14 @@ import { ToastRoot } from "@eqtylab/equality";
11
11
12
12
## Overview
13
13
14
-
---
14
+
The Toast component provides a non-intrusive way to display notifications to users. It supports status-dependant variants, optional (though suggested) titles and descriptions, and action buttons. Toasts automatically dismiss after a delay and can be manually dismissed via a close button.
15
15
16
-
The Toast component provides a non-intrusive way to display notifications to users. Built on top of Radix UI primitives, it supports multiple variants (default, danger, warning, success), optional titles and descriptions, and action buttons. Toasts automatically dismiss after a delay and can be manually dismissed via a close button.
16
+
Because toasts disappear automatically after five seconds, it is not recommended to make any actions surfaced within them solely available in the toast. For example, this could be used to give users an opportunity to undo their previous action, but the undo action should also be made available outside of the toast component.
17
17
18
18
## Variants
19
19
20
+
When `title` is present, toasts display variant-specific icons by default.
21
+
20
22
### Default
21
23
22
24
<ToastDemoclient:only="react" />
@@ -33,25 +35,21 @@ The Toast component provides a non-intrusive way to display notifications to use
0 commit comments